Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPspDisconnectParts.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2005
 *****************************************************************************
   Purpose:      This sample checks how to check if two parts are connected.
                 Furthermore, if the parts are connected they are disconnected.
   Assumption:   Looks for document CAAPspEduIn.CATProduct
                 Looks for objects  V-117 and Gasket-012

   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 of the Distributive System object tree - .
-----------------------------------------------------------------------
 Get PspWorkBench, PspApplication
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing )...
-----------------------------------------------------------------------
 Get list of physical (3D) objects in the Piping domain
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing ) and objPspApplication

 --------------------------------------------------------------
 Get PspConnectable object corresponding to  Valve with ID=V-117
 and Gasket whose ID = Gasket-012
 ---------------------------------------------------------------
-----------------------------------------------------------------------
 Get Connnected objects on the valve to see if Gasket-012 is connected
 to V-117
-----------------------------------------------------------------------
 Exit out of the for loop
---------------------------------------
 To Disconnect V-117 and Gasket-012
  get correspoding connectors from the lists objLCntrsOnThisObj
 and objLCntrsOnConnected at location at index=iIdxOfGasket
---------------------------------------
--- index of connected object  (iIdxOfGasket ) > 0
 -----------------------------------------------------------------------------
 | FindPipingPartByID functions
 |
 | Input: objLPhysicalsArg        : PspListOfObjects object
 |         strIDArg               : ID of an object that looking for
 |
 | Output: PspConnectable object having ID = strIDArg
 -----------------------------------------------------------------------------
 ------------------------------------------------
 Setting the output of the function to Nothing

--------------------
 Check if ID matches
 Exit out of the for loop
----- End of loop index=iIndex