Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchQueryConnectivity.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Query the connectivity of components and routes in a network.
   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 schematic document
 Find the top node of the schematic object tree - schematic root.
 -------------------------------------------------------------------------
 |  Get a list of all component instances and
 |  a list of all route instances in the model.
 -------------------------------------------------------------------------
 -------------------------------------------------------------------------
 |  For each component instance in the list, find connected objects
 -------------------------------------------------------------------------
---------------------------------------------------------------
  AppListConnectables output 3 lists of objects.

  If a component A is connected to another component B on
  one side and to a route C on the other side, then the
  output lists of objects will contain the following members.

         objLCntblOther    objLCntrThis    objLCntrOther
         --------------    --------------  ----------------
           B               connector on A   connector on B
           C               connector on A   connector on C
---------------------------------------------------------------
--- For intIndex = 1 To intNb
 --- If (intNb > 0) Then
--- If ( Not ( objSchLComps Is Nothing ) And ...
 -------------------------------------------------------------------------
 |  For each route instance in the list, find connected objects
 -------------------------------------------------------------------------
--- For intIndex = 1 To intNb
 --- If (intNb > 0) Then
--- If ( Not ( objSchLComps Is Nothing ) And ...
--------------------------------------------------------------------
  Report the name of the object connected
--------------------------------------------------------------------
--------------------------------------------------------------------
  Report the location of the connection through the connector
  position
--------------------------------------------------------------------
--- If ( Not ( objGRR Is Nothing ) ) Then ...
--- For intIndex = 1 To intNb
--- If ( intNbCntbl = intNbCntr ) Then ...
--- If ( Not ( objLCntblArg Is Nothing ) And ...
 -----------------------------------------------------------------------------
 | Find the first symbol used for the input schematic component.
 | Input: objSchCompGraph:  the schematic component
 |        (a CATIASchCompGraphic interface handle).
 | Returns: the component image (the symbol instance)
 -----------------------------------------------------------------------------
-------------------------------------------------------------------------
 Input objSchCntblArg could be a route or a component.  If
 objSchCntblArg is a component, we expect
 Set objSchRouteGraph = objSchRootArg.GetInterface ( _
  "CATIASchRouteGraphic",objSchCntblArg) to fail
 Error handling is to call GetInterface again with "CATIASchCompGraphic"
 as input argument.
-------------------------------------------------------------------------