Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: exportMaterialLibrary.CATScript
Cevap:
COPYRIGTH DASSAULT SYSTEMES 2003
 ***********************************************************************
   Purpose:		Export a material library to a text file

   Version:		1.0
   Author:			BMB
   Languages:		CATScript
   Locales:		English
   CATIA Level:	V5R12
 ***********************************************************************
 Main
 Get the file system object
 Get the documents collection
 Test if no document is open
 Get material library
 Test if the active document is a material library (CATMaterial)
 Test if the document has been saved to disc
 Determine the file separator
 Get name of the material library
 Create folder for outputs
 Create the name of the output file
 Create the material library text file
 Header of the output file
 Create the name of the html output file
 Create the html output file
 Header of the html output file
 Declarations
 Create the html family output file
 Init families
 Family loop
 Init family
 Create image folder
 Init materials
 Html families table
 Html family page
 Header of the family html output file
 Material loop
 Init material
 Save icon
 & oMaterial.Name & ".jpg")
 Html materials table
 Html material page
 Header of the material html output file
 Html insert image of the material
 Test if rendering data exist
 Init RenderingMaterial
 Rendering proporties
 one variable mode
 Html one variable mode
 array mode
 index mode
 Test if analysis data exist
 Init AnalysisMaterial
 Analysis proporties
 Isotropic Material
 Html Isotropic Material
 Orthotropic Material
 Html Orthotropic Material
 End of material html file
 Close html family stream
 End of family html file
 Close html family stream
 End of html file
 Close streams
 End message
************************************************************************************
	Subs and Functions code
************************************************************************************
------------------------------------------------------------------------------------
	DeleteFolderRecursive
	Delete a folder and all the files or folders in it
------------------------------------------------------------------------------------
 Get folder
 Get files collection
 Declarations
 Delete all files
 Get subfolders collection
 Delete all folders
 Delete folder
------------------------------------------------------------------------------------
	HtmlHeader
	Write the header of html files in the specified stream
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
	HtmlEnd
	Write the end of html files in the specified stream
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
	HtmlRowMaterial
	Write the material row of html files
------------------------------------------------------------------------------------