Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPspDeletePart.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2005
 *****************************************************************************
   Purpose:      This sample illustrates how to delete a logical line instance,
                 and a Group instance in a Distributive System document.


   Assumption:   Looks for document CAAPspEduIn.CATProduct.

   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
MsgBox strMessage_g

 Find the top node (PspWorkbench)of the Distributive System object tree.

-----------------------------------------------------------------------
 Get PspWorkBench, PspApplication
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing )...
-----------------------------------------------------------------------
 Create a Group, list groups and Delete group
-----------------------------------------------------------------------
-----------------------------------------
 Display all the group information
-----------------------------------------
 End for loop indx = iIdx
-------------------------------------------
 Delete group
--- If ( Not ( objPspWorkbench Is Nothing ) and objPspApplication
-----------------------------------------------------------------------
 Create a Logical line instance, list line and Delete new instance
-----------------------------------------------------------------------
 ---------------------
 Create line instance
 ---------------------
 List logical lines
-----------------------------------------
 Display all the group information
-----------------------------------------
 End for loop indx = iIdx
-------------------------------------------
 Delete Line
-------------------------------------------