Parameter Information
Methods and Properties Introduced:
Parameters inherit methods from the pfcBaseParameter, pfcParameter and pfcNamedModelItem classes.
You can access the designation status of the parameter using the property
pfcBaseParameter.IsDesignated.
The property
pfcBaseParameter.IsModified enables 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 changes but the owner of the parameter has not yet been regenerated.
The method
pfcBaseParameter.ResetFromBackup() resets the parameter to the value it had before it was last set in the current
Creo Parametric.
The property
pfcBaseParameter.IsRelationDriven identifies whether the part or assembly relations control a dimension.
The method
pfcParameter.GetScaledValue() returns the parameter value in the units of the parameter, instead of the units of the owner model.
The method
pfcParameter.SetScaledValue() assigns the parameter value in the units provided, instead of using the units of the owner model.
The method
pfcParameter.Units() returns the units assigned to the parameter.
The property
pfcParameter.Description returns the parameter description, or null, if no description is assigned.
The property
pfcParameter.GetRestriction identifies if the value of the parameter 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 using the enumerated data type
pfcParameterDriverType. A list of driver types including a description of each parameter value ,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.Delete() permanently removes a specified parameter.
The property
pfcNamedModelItem.Name accesses the name of the specified parameter.