Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchQueryCompRoute.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Provides a list of component and route from a schematic
                 document. List all the defining points of the component
                 route instances. For each component instance, also lists
                 the defining points of its connectors.
   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.
-----------------------------------------------------------------------
| Query the name of the current document
-----------------------------------------------------------------------
 -------------------------------------------------------------------------
 |  List schematic component references in the model
 -------------------------------------------------------------------------
 -------------------------------------------------------------------------
 |  List schematic component instances in the model
 -------------------------------------------------------------------------
------------------------------------------------------------------
 Get the orientation matrix of the symbol representing the
 component instance.
------------------------------------------------------------------
--- If ( Not ( objGRRComp Is Nothing )...
---if ( Not ( objCompGraphInst Is Nothing ) ...
------------------------------------------------------------------
 Get the connector locations of all component instances
------------------------------------------------------------------
---If ( Not ( objCntr Is Nothing )) ...
--- For iCntr ...
--- If ( NbCntr > 0 ...
--- Not ( objLCntr Is Nothing ...
---if ( Not ( objCntbl Is Nothing )) ...
--- For intIndex = 1
--- If (intNbComp > 0) ...
--- If ( Not ( objSchLComps Is Nothing ) ...
 -------------------------------------------------------------------------
 |  List schematic route instances
 -------------------------------------------------------------------------
strName = objPrd.Name
------------------------------------------------------------------
 Get the route points x-y coordinates of the route.
------------------------------------------------------------------
--- If ( Not ( objSchLDbRoute Is Nothing ...
--- If ( Not ( objGRRRoute Is Nothing )...
---if ( Not ( objSchRouteGraph Is Nothing ) ...
--- For intIndex = 1 To intNbRoute
--- If (intNbRoute > 0) ...
--- If ( Not ( objSchLRoutes Is Nothing ) ...
 -----------------------------------------------------------------------------
 | 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)
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 | Find the first graphical primitives of an input route.
 | Input: objSchRouteGraph: the schematic route
 |        (a CATIASchRouteGraphic interface handle).
 |        objSchRootGraph: the schematic root
 | Returns: the route graphic primitives
 -----------------------------------------------------------------------------