Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAASchCompRefGraphic.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2004
 *****************************************************************************
   Purpose:      Add/List graphical representations to a reference component.
   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.
-----------------------------------------------------------------------
 Find a list of reference component in the model
-----------------------------------------------------------------------
--------------------------------------------------------------------
 Get a SchCompGraphic interface handle from a reference
 component
--------------------------------------------------------------------
----------------------------------------------------------------
 Find a symbol that is not associated with any reference in
 the model
----------------------------------------------------------------
--------------------------------------------------------------
  Add the second graphical representation to the reference
  component using the symbol just found
--------------------------------------------------------------
----------------------------------------------------------------
 Find another symbol that is not associated with
 any reference in the model
----------------------------------------------------------------
--------------------------------------------------------------
  Add the third graphical representation to the reference
  component using the symbol just found
--------------------------------------------------------------
 --- If (intNbGraphic > 1)
--- If ( Not ( objLGraphic Is Nothing ) ) Then
--- If ( Not ( objCompRefGraphic Is Nothing )...
--- If ( Not ( objLCompRefs Is Nothing ) ...
--- If ( Not ( objSchRoot Is Nothing )...
 -----------------------------------------------------------------------------
 | Find a component symbol that has not been associated with a schematic
 | component from a document root.
 | Input: objSchRootArg:  the root of the document.
 | Returns: component symbol object.
 -----------------------------------------------------------------------------