Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAKniParameters.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2001
 ***********************************************************************
   Purpose:      This macro:
                 1 - scans the list of parameters of a CATPart document
                 2 - for each parameter, determines whether a parameter is hidden,
                     whether it is a boolean type parameter
                     and sets its value to true
                 3 - displays the list of hidden parameters
                     along with their values and comments
                 4 - asks you to modify the status (Hidden->Show) of the parameters
                     and to re-run to macro.
                 The parameter comments are those you specify by using the Edit comments...
                 command from the contextual menu. After the list of hidden parameters
                 is displayed you can turn the status of each parameters to Show
                 and run again the macro.

   Assumptions:  This macro is intended to be run on the
                 KwrMacroHiddenParameters.CATPart document.
                 However, you can run this macro on any CATPart document
                 The KwrMacroHiddenParameters.CATPart sample has three
                 hidden parameters: "Task1" , "Task2" and "Task3", all of them
                 are booleans with their initial values set to false.
                 As these parameters are in a hidden status, they are not displayed
                 in the specification tree but they are visible in the f(x) dialog box.


   Author:       Carole ROULLE, Pierre Grignon
   Languages:    VBScript
   Locales:      English (United States)
   CATIA Level:  V5R6
   revision V5R13
 ***********************************************************************
 -----------------------------------------------------------
 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 CATPart
 InStr is a standard VB function
 Retrieve the collection object which contains
 all the document parameters
 Declare the variables to be used in the message box
 which displays the hidden parameters
 Scan the parameter list,
 test whether the value returned by the Hidden property is "True",
 test whether the type of the parameter is BoolParam,
 increment the HiddenNumber variable
 set to true the boolean value of the hidden parameters (if any)
 Note about the BoolParam type test:
 The statement oParams.Item(i).Value = "true" raises an error
 whenever the parameter is not a boolean
 Display the list of hidden parameters.
 The parameter names, values and comments
 are displayed in a message box.
 Ask you to modify interactively the status of the
 parameters and to re-run the macro.