Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: switch_ShadowsEnv.CATScript
Cevap:
COPYRIGTH DASSAULT SYSTEMES 2003
 ***********************************************************************
   Purpose:		Switch on and off all the environment' 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 env
 Declarations
 Create the parameter
 switch OFF 
 Environments loop
 Select the active env
 Walls loop
 Adapt to the env type
 Create the parameter
 switch ON 
 Parse the parameter value
 read the parameter value
 env not exist
 Remove parameter