Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPspQueryProperties.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2005
 *****************************************************************************
   Purpose:      This sample illustrates the use of IDL interfaces
                 CATIAPspAttribute and CATIAPspID

   Assumption:   Looks for document CAAPspEduIn.CATProduct.

   Languages:    VBScript
   Locales:      English
   CATIA Level:  V5R15
 *****************************************************************************
--- strMessage_g is a global variable visible to all private Sub/Function
 -------------------------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 -------------------------------------------------------------------------
 Open the Distributive system document
 Find the top node of the Distribute System object tree - .
-----------------------------------------------------------------------
 Get PspWorkBench, PspApplication
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing )...
-----------------------------------------------------------------------
 Get PspPhysical object
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing ) and objPspApplication
-----------------------------------------------------------------------
 Get PspID object and query ID information
-----------------------------------------------------------------------
-----------------------------------------------------------------------
 Get PspAttribute object and query Attribute information
-----------------------------------------------------------------------
----------------------------------------------------------------------
 List Attributes for CATPIP domain
----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing ) and objLPhysicals
 -----------------------------------------------------------------------------
 | QueryPspID methods
 |
 | Input: objPspIDArg        : PspID object
 |
 |
 -----------------------------------------------------------------------------
----------------------------------------------------------
 Generate ID without regenerating sequence num
----------------------------------------------------------
----------------------------------------------------------
 Generate and Put ID on the object
----------------------------------------------------------
----------------------------------------------------------
 Is ID generated
----------------------------------------------------------
 -----------------------------------------------------------------------------
 | QueryPspAttribute methods
 |
 | Input: objPspWorkbenchArg : PspWorkbench object
 |        objPspIDArg        : PspID object
 |        objLStrAttrNamesArg: PspListOfBSTRs object
 -----------------------------------------------------------------------------
-----------------------------------------------------
 Getting type, Discrete, Derived status of the attribute
-------------------------------------------------------
------ bIsDerived
-------------------------------------------------
 Handling Integer, String and boolean attributes
-------------------------------------------------
--------------------------------------------
 Get discrete values for String attribute
--------------------------------------------
--------------------------------------------
 Get discrete values for Integer attribute
--------------------------------------------
-------------------------------------------------
 Handling Real (Double) attribute
 Some attribute could be with magnitude
 -------------------------------------
 Checking if CATIADimension handle
 can be obtained from Real parameter
 ---------------------------------------------
 Getting Unit handler from the Dimension object
 ----------------------------------------------
 Real attribute
 End for loop index = intIdx
 Not ( objPspAttributeArg Is Nothing )