Parameter Information
Methods and Properties Introduced:
Parameters inherit methods from the pfcBaseParameter, pfcParameter and pfcNamedModelItem classes.
The property
pfcBaseParameter.Value returns the value of the parameter or dimension.
The method
pfcParameter.GetScaledValue() returns the parameter value in the units of the parameter, instead of the units of the owner model as returned by
pfcBaseParameter.Value.
The method
pfcParameter.SetScaledValue() assigns the parameter value in the units provided, instead of using the units of the owner model as assumed by
pfcBaseParameter.Value.
The method
pfcParameter.Units returns the units assigned to the parameter.
You can access the designation status of the parameter using the property
pfcBaseParameter.IsDesignated .
The property
pfcBaseParameter.IsModified and
pfcBaseParameter.ResetFromBackup() enable you to identify a modified parameter or dimension, and reset it to the last stored value. A parameter is said to be "modified" when the value has been changed but the parameter's owner has not yet been regenerated.
The property
pfcParameter.Description returns the parameter description, or null, if no description is assigned.
The property
pfcParameter.GetRestriction identifies if the parameter’s value is restricted to a certain range or enumeration. It returns the
pfcParameterRestriction object. Refer to the section
Parameter Restrictions for more information.
The property
pfcParameter.GetDriverType() returns the driver type for a material parameter. The driver types are as follows:
• PARAMDRIVER_PARAM—Specifies that the parameter value is driven by another parameter.
• PARAMDRIVER_FUNCTION—Specifies that the parameter value is driven by a function.
• PARAMDRIVER_RELATION—Specifies that the parameter value is driven by a relation. This is equivalent to the value obtained using
pfcBaseParameter.IsRelationDriven for a parameter object type.
The method
pfcParameter.Reorder() reorders the given parameter to come immediately after the indicated parameter in the
Parameter dialog box and information files generated by
Creo Parametric.
The method
pfcParameter.Reorder() permanently removes a specified parameter.
The property
pfcNamedModelItem.Name accesses the name of the specified parameter.