Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAKniFilterRightBelowRoot.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2001
 ***********************************************************************
   Purpose:      Given a CATProduct document,
                 this macro filters the parameters right below the root
                 product.
                 Note: You cannot retrieve the list of parameters
                 right below the root product by using the
                 Product.Parameters attribute of the active document
                 because if you do this, you retrieve all the
                 parameters of the CATProduct document (parameters
                 right below the root product as well as parameters
                 below components.
                 The trick is to determine whether a parameter which belongs
                 to the activedocument.Product.Parameters list belongs to
                 one of the sub-component parameter list.

   Assumptions:  This macro is intended to be run on
                 any CATProduct with CATProduct documents as components


   Author:       Carole ROULLE , Pierre Grignon
   Languages:    VBScript
   Locales:      English (United States)
   CATIA Level:  V5R6
 ***********************************************************************
 -----------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 -----------------------------------------------------------
 Open the Part document
 Set the CATIA popup file alerts to False
 It prevents to stop the macro at each alert during its execution
 Retrieve your active document - CATIA is your application
 You get the active document by using the ActiveDocument property
 on your application object
 Check whether the document is a CATProduct
 Scan the complete list of parameters
 Use the BelongToComp flag to set the parameter status
 Initial value = 0 (does not belong to a sub-component)
 Scan each parameter list of a sub-component
 If the document parameter is the same as the sub-component
 parameter - Sets the flag to 1
 if the flag is set to 0 - the document parameter
 does not belong to ant sub-component
 Conclusion: it is right below the root