Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAKiiMechanismCreation.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2000-2001
*****************************************************************************
 Purpose:      This macro creates a simulable mechanism
               in a specific product document
 Assumptions:  The product document used is called "ForKinMacro.CATProduct".
               It contains a root product called Product1,
               and two parts called "PartKIN_1" and "PartKIN_2".
               In turn "PartKIN_1.CATPart" and "PartKIN_2.CATPart"
                  each contain at least a line called Line.1
 Author:
 Languages:    VBScript
 Version:      V5R6
 Locales:      US English
*****************************************************************************
==================================================================
 1-Prolog
==================================================================
------------------------------------------------------------------
 1.a-Retrieve the root product and the first sub-product
------------------------------------------------------------------
------------------------------------------------------------------
 1.b-Retrieve the first sub-product to be used as fixed part
------------------------------------------------------------------
------------------------------------------------------------------
 1.c-Switch the entire product to design mode
------------------------------------------------------------------
------------------------------------------------------------------
 1.d-Retrieve references to the geometry used for joint creation
------------------------------------------------------------------
==================================================================
 2-Create a new empty mechanism
==================================================================
------------------------------------------------------------------
 2.a-Retrieve the Mechanisms Collection from the Product
------------------------------------------------------------------
------------------------------------------------------------------
 2.b-Create a new mechanism
------------------------------------------------------------------
------------------------------------------------------------------
 2.c-Check the number of mechanisms (expected to be one)
------------------------------------------------------------------
------------------------------------------------------------------
 2.d-Retrieve the name of the Mechanism
------------------------------------------------------------------
==================================================================
 3-Create the fixed part in this mechanism
==================================================================
==================================================================
 4-Create a cylindrical (actuator) joint in this mechanism
==================================================================
------------------------------------------------------------------
 4.a-Prepare an array of references used for the joint
------------------------------------------------------------------
------------------------------------------------------------------
 4.b-Create the joint
------------------------------------------------------------------
------------------------------------------------------------------
 4.c-Check the number of joints (expected to be one)
------------------------------------------------------------------
==================================================================
 5-Create 2 commands on that joint
==================================================================