Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAPspQueryFunctionPhysical.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2005
 *****************************************************************************
   Purpose:      This sample illustrats the use of IDL interfaces
                 CATIAPspFunctional, CATIAPspPhysical and CATIAPspSpatial
   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 Distributive System object tree - .
-----------------------------------------------------------------------
 Get PspWorkBench, PspApplication
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing )...
-----------------------------------------------------------------------
 Get  a PspPhysical object in the Piping domain
-----------------------------------------------------------------------
--- If ( Not ( objPspWorkbench Is Nothing ) and objPspApplication
-----------------------------------------------------------------------
 Get Spatial object and Functional Object
-----------------------------------------------------------------------
-----------------------------------------------------------------------
 Query Spatial Information
-----------------------------------------------------------------------
-----------------------------------------------------------------------
 Query Functional-Physical Information
-----------------------------------------------------------------------
 -----------------------------------------------------------------------------
 | QuerySpatial methods
 |
 | Input: objPspSpatialArg        : PspSpatial object
 |
 |
 -----------------------------------------------------------------------------
--------------
 Get list of physical objects associate with spatial object
 -----------------------------------------------------------------------------
 | QueryFunctionalPhysical : Query Functional physical integration
 |
 | Input: objPspPhysicalArg    :  PspPhysical object
 |        objPspPhysicalArg    :  PspObject object
 |        objPspFunctionalArg  :  PspFunctional object
 |        objPspResourceArg    :  PspResource object
 -----------------------------------------------------------------------------
--------------------------
 Check if the function object IsSpecDriven
-------------------------------------------------------
 Check if Function object is associated with a placed
 physial part
-----------------------------------------
 Get Compatible part types
-----------------------------------------
-----------------------------------------
 Get Physical startup type
-----------------------------------------
-----------------------------------------
 Get PipingPartsCatalog full path
-----------------------------------------
-----------------------------------------
 Get Part Type of the associated physical object
-----------------------------------------
-----------------------------------------
 Get Part Number of the associated physical object
-----------------------------------------
-----------------------------------------
 Get Catalog Part name of the associated physical object
-----------------------------------------
-----------------------------------------
 Check if the associated Physical object is OK to integrate
-----------------------------------------
-----------------------------------------
 Function status
-----------------------------------------