Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPspLightPart.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2005
 *****************************************************************************
   Purpose:      This sample illustrats the use of IDL interfaces
                 CATIAPspLightPart

   Assumption:   Looks for document CAAPspEduIn.CATProduct.
                 Looks for an object Weld-011 ( PspLightPart)
   Languages:    VBScript
   Locales:      English
   CATIA Level:  V5R15
 *****************************************************************************
--- strMessage_g is a global variable visible to all private Sub/Function
 -------------------------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 -------------------------------------------------------------------------
 Open the Distributive system document
 ---------------------------------------------------------
 Find the top node (PspWorkbench) of the Distributive System object tree - .
-----------------------------------------------------------------------
 Get PspWorkBench, PspApplication
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing )...

 ----------------------------------------------------
 Get a Product whose instance name is Weld-011
 and then get handler to PspLightPart
 ----------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing ) and objPspApplication
-----------------------------------------------------------------------
 Get PspLightPart object information
-----------------------------------------------------------------------
 ----------------------------------------
 Setting up array of definition of points
 -----------------------------------------
 ----------------------------------------
 Get definition points of the light part
 ----------------------------------------
-----------------------------------------
 Display information on Definition points
-----------------------------------------
 End of  If ( Not ( objPspLightPart is Nothing...