Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchNetworkTransf.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Scale and move component instances in a network.
   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 and
 objLSelected_g
-----------------------------------------------------------------
--- If ( Not ( objSchBaseFact Is Nothing )...
--- If ( Not ( objSchRoot Is Nothing )...
-----------------------------------------------------------------
  Translate the first network by (50.0, 0.0)
-----------------------------------------------------------------
-----------------------------------------------------------------
  Scale a component (the one with "_Scale" in its name) that is in
  the network. Objects directly connected to this component will
  be adjusted according until a route is reached. The latter will
  be "reshaped".
  objLSelected_g is set in FindNetworkComponentInst
-----------------------------------------------------------------
--- If ( Not ( objLNetWork Is Nothing ) ...
 -----------------------------------------------------------------------------
 | Find components and their images to be used to compute a network.
 | 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 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)
 -----------------------------------------------------------------------------