Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchNetwork.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Network analysis.
   Languages:    VBScript
   Locales:      English
   CATIA Level:  V5R15
 *****************************************************************************
------------------------------------------------------------------------------
 These variables are visible to private Sub and CATMain
------------------------------------------------------------------------------
 -------------------------------------------------------------------------
 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 all the necessary factories.
-----------------------------------------------------------------------
-----------------------------------------------------------------
 The following "Sub" will populate objLCntbl_g and objLGRR_g
-----------------------------------------------------------------
--- If ( Not ( objSchBaseFact Is Nothing )...
--- If ( Not ( objSchRoot Is Nothing )...
-----------------------------------------------------------------------
 Query the network members
-----------------------------------------------------------------------
---------------------------------------------------------------------
  Get the members of the list of connectables.
---------------------------------------------------------------------
--- For intMemIndex
--- If ( Not ( objLNetMember Is Nothing ) ...
---------------------------------------------------------------------
  Get the members of the list of extremities (routes).
---------------------------------------------------------------------
--- For intMemIndex
--- If ( Not ( objLNetMember Is Nothing ) ...
--- For intNetIndex
--- If ( Not ( objLNetWork Is Nothing ) ...
 -----------------------------------------------------------------------------
 | Find 2 components and their images.
 | Input: objSchRootArg:  the root of the document.
 | Returns: objLCntbl_g: a list of component instance objects
 |          objLGRR_g: a list of component instance image objects
 -----------------------------------------------------------------------------
------------------------------------------------------------------------
  Loop through the members in the list and find 2 components that
  have "network" as part of the product instance names
------------------------------------------------------------------------
--- If ( Not ( objCntbl Is Nothing ) ...
--- If (Not ( objLCompInst 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)
 -----------------------------------------------------------------------------