Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchDelete.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Delete objects.
   Languages:    VBScript
   Locales:      English
   CATIA Level:  V5R15
 *****************************************************************************
 -------------------------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 -------------------------------------------------------------------------
 Open the schematic document
 Find the top node of the schematic object tree - schematic root.
-----------------------------------------------------------------------
  In this specific input model, we expects to find a component
  instance that has been inserted into a route.

  After this component instance is deleted, the two routes on
  each side of the deleted component will be concatenated by the
  system to become one.
-----------------------------------------------------------------------
--- If ( Not ( objSchBaseFact Is Nothing ...
-----------------------------------------------------------------------
  Concatenate the 2 members
  The first member will be extended and the 2 member will be
  deleted
-----------------------------------------------------------------------
--- If ( Not ( objLRoutes Is Nothing ) ...
--- If ( Not ( objSchRoot Is Nothing )...
 -----------------------------------------------------------------------------
 | Find a component instance with a specific name
 | (contains "delete" sub-string)
 | Input: objSchRootArg:  the root of the document.
 | Returns: a list schematic component handle
 -----------------------------------------------------------------------------
------------------------------------------------------------------------
  Loop through the members in the list and find s component that
  has"delete" as part of its product instance name
------------------------------------------------------------------------
--- If ( Not ( objSchComp Is Nothing ) ...
--- If (Not ( objLCompInst Is Nothing ) ...
 -----------------------------------------------------------------------------
 | Find a connector in a route that is not connected to another object.
 | Input: objSchRoute:  the route object.
 | Returns: the open connector
 -----------------------------------------------------------------------------
------------------------------------------------------------------------
  Loop through the members in the list and find an unconnected connector
------------------------------------------------------------------------
--- If ( Not ( objAppCntr Is Nothing ) ...
--- If (Not ( objLAppCntr Is Nothing ) ...