Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: applyMaterials.CATScript
Cevap:
COPYRIGTH DASSAULT SYSTEMES 2004
 ***********************************************************************
   Purpose:		Apply and retrieve materials onto Product, Part or Body
   Assumptions     Looks for Product1.CATProduct, Part1.CATPart and MyCatalog.CATMaterial in the DocView
   Version:		1.0
   Author:			AST
   Languages:		CATScript
   Locales:		English
   CATIA Level:	V5R14
 ***********************************************************************
 Main
 -----------------------------------------------------------
 Optional: allows to find the sample wherever it's installed


 -----------------------------------------------------------
 Open the CATMaterial document (material library)
 -----------------------------------------------------------

 -----------------------------------------------------------
 Read materials in this catalog (which contains 3 families and 5 materials in each family)
 First retrieve the families of the library
 -----------------------------------------------------------


 -----------------------------------------------------------
 Retrieve the first family of the library
 -----------------------------------------------------------


 -----------------------------------------------------------
 Retrieve the material number 1,2 and 3 of the family
 -----------------------------------------------------------


 -----------------------------------------------------------
 Read product file
 -----------------------------------------------------------


 -----------------------------------------------------------
 Access on material manager on root product document
 -----------------------------------------------------------


 -----------------------------------------------------------
 Apply the material on the Product (as a link)
 -----------------------------------------------------------


 -----------------------------------------------------------
 Retrieve the material applied on the Product
 -----------------------------------------------------------


 -----------------------------------------------------------
 Open the Part document
 -----------------------------------------------------------


 -----------------------------------------------------------
 Access on material manager on root part document
 -----------------------------------------------------------

 Retrieve the extension object associated to Y under the key "MyCATIVBExtensionImpl"

 -----------------------------------------------------------
 Apply the material on the Part
 -----------------------------------------------------------


 -----------------------------------------------------------
 Retrieve the material on the Part
 -----------------------------------------------------------


 -----------------------------------------------------------
  Retrieve the Part Body
 -----------------------------------------------------------


 -----------------------------------------------------------
 Apply the material on the Part Body (as a link)
 -----------------------------------------------------------


 -----------------------------------------------------------
 Retrieve the material on the Part Body
 -----------------------------------------------------------


 -----------------------------------------------------------
  End of Script
 -----------------------------------------------------------

 Close the documents