About Restricted Value Parameters
You can create restricted value parameters that use definitions from a restriction definition file. This file defines the parameter name and type, and optionally, the value of the parameter or a range of values for the parameter, or a list of values for the parameter. After you create restricted value parameters, their definitions exist in the model independently of the parameter file.
If the restriction definition file changes, you can generate a report to investigate if parameter definitions in the model are different from those in the restriction definition file. You can then update parameter definitions in the model by using the modified restriction definition file.
|
Drawing parameters can also be of restricted value type.
|
To create restricted value parameters, click
Tools >
Parameters. You can also add or edit restricted value parameters directly on the Model Tree.
When using the Parameters dialog box, you can create a restricted parameter in one of the following ways:
• Type the appropriate parameter name. Creo Parametric recognizes that parameter as a restricted value parameter.
• Select a parameter under Restricted to indicate that the parameter is restricted, and select a parameter name from the list or type a name.
• Type the first letter or first few letters of the parameter name. All parameters from the parameter table that match the typed letter or letters are displayed in the Name box. Select the required parameter name and press ENTER. You are prompted to define the value of the parameter.
• Type the first letter or first few letters of the parameter name. If a match is not found for the typed letter, the restricted parameter value list is not available and you are notified that it is an invalid parameter name when you press ENTER.
• Define the parameter value. As you type the first letter of the parameter name, the first available value for the defined restricted parameter that matches the typed letter is displayed in the Value box. Select the required parameter name and press ENTER. A default value is assigned to the parameter. You can change the parameter value, if required.
After you create a restricted value parameter, you can change its value by selecting a different value from the predefined (allowed) values. If you enter an incorrect value, you get an error message that also gives the valid range for this parameter.
Setting up PTC Creo Parametric Environment for Restricted Value Parameters
To load the restriction definition file, specify the path to that file by setting the restricted_val_definition configuration option.
| The restriction definition file is loaded only when Creo Parametric starts. |
Applications of the Restricted Value Parameters
You can use restricted value parameters in relations.
| If a value of a restricted value parameter changes and becomes invalid, the relation where this parameter is used reports an error. If the assigned value does not satisfy the parameter restriction, the parameter value is not changed. |
You can include a restricted value parameter in Family Tables, an Inheritance feature, a user-defined feature, an Annotation feature, Program, and Data Sharing Features.
| In case of a conflict in definitions between the UDF and the model, the newly placed UDF takes on the model's definition, but retains its present value. If the parameter brought in by the UDF is marked as invalid, you can edit the value of the new parameter and set it to a valid value defined by the current model. |
If a restricted value parameter is defined as Designated, it is available to the PDM system. Only the parameter name, type, and its current value are passed to Pro/INTRALINK. A list of valid parameter values is not passed to Pro/INTRALINK.