Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: switch_LightsShadows.CATScript
Cevap:
COPYRIGTH DASSAULT SYSTEMES 2003
 ***********************************************************************
   Purpose:		Switch on and off all the ligths' shadows of a product

   Version:		1.0
   Author:			bmb
   Languages:		VBScript
   Locales:		English
   CATIA Level:	V5R12
 ***********************************************************************
 Main
 Get the documents collection
 test if no document is open
 Get material library
 test if the active document is a material library (CATMaterial)
 Accessing the Root Product
 Accessing the collection of rendering lights
 Declarations
 Create the parameter
 switch OFF 
 Ligths loop
 Create sParamValue
 Create the parameter
 switch ON 
 Parse the parameter value
 read the parameter value
 Ligths loop
 light not exist
 1=directional light
 1=spot light
 Remove parameter