Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPstAddComponent.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2000
 *****************************************************************************
   Purpose:       Create A Product Structure document containing
                        two parts and multiply the instances of one of these parts,
                        creating identical products differing only in their position.
   Assumtions:   Looks for CAAPstHull.CATPart and
                        CAAPstFunnel.CATPart in the CATDocView
   Author:
   Languages:   VBScript
   Locales:        English
   CATIA Level:  V5R6
 *****************************************************************************
 -----------------------------------------------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 ------------------------------------------------------------------------------------------------
Create a new product document object by adding a document with the Product
type to the document collection of the CATIA application.
Retrieve the Titanic as the root product.
Declare the Titanic's part number and name.
Retrieve the product's collection of the Titanic.
Add the hull as a new component in the collection with its part number
and name.
Add a master shape representation to the hull using an existing part and
reframe the viewer.
Add the first funnel to the Titanic's product collection, with part number
and name.
Add a master shape representation to the funnel using an existing part
Define the initial positioning parameters for the Funnel1 instances.
Get the reference of the Funnel product
Add a second component using the existing Funnel product's reference.
Associate the new product with a different position from its reference
Add a third component using the existing Funnel product's reference.
Associate the new product with a different position from its reference
Add a fourth component using the existing Funnel product's reference.
Associate the new product with a different position from its reference