Creating and Accessing Parameters
 
Methods and Property Introduced:
In the VB API, models, features, surfaces, and edges inherit from the IpfcParameterOwner class, because each of the objects can be assigned parameters in Creo+.
The method IpfcParameterOwner.GetParam() gets a parameter given its name.
The method IpfcParameterOwner.ListParams() returns a sequence of all parameters assigned to the object.
To create a new parameter with a name and a specific value, call the method IpfcParameterOwner.CreateParam().
To create a new parameter with a name, a specific value, and units, call the method IpfcParameterOwner.CreateParamWithUnits().
The method IpfcParameterOwner.SelectParam() allows you to select a parameter from the Creo+ user interface. The top model from which the parameters are selected must be displayed in the current window.
The method IpfcParameterOwner.SelectParameters() allows you to interactively select parameters from the Creo+ Parameter dialog box based on the parameter selection options specified by the IpfcParameterSelectionOptions object. The top model from which the parameters are selected must be displayed in the current window. Refer to the section Parameter Selection Options for more information.
The property IpfcFamColParam.RefParam returns the reference parameter from the parameter column in a family table.
Was this helpful?