This task changes model parameters specified by name or value. The value and type of the parameter can be changed. The parameters to be edited must already exist in the model.
The cross-task settings can be found in the chapter General task settings.
Model filter
This task can revise the following models: Parts, Assemblies and Drawings
The task-specific settings are:

1.Search by
Select whether the entry in Search (2) is compared with the parameter name or the parameter value.
2.Search
Enter the comparison value. You can use RegEx. The icon
opens the RegEx Editor.
3.New type
You can assign a new data type to the feature parameter. The data types String, Integer, Double, and Boolean are available. Specifying a new type replaces any other specifications for the parameter.
Please note: If the parameter found in the model does not correspond to the set parameter type, it is deleted from the model and a new parameter with the same name is created. |
4.New value
Enter the new value for the parameter. Specifying a new value will replace any previous specifications for the parameter. To retain the old value, enter @para@.
5.If model is Instance
Use the Process all instances checkbox to select whether all instances should be processed if the model is a generic part.
If this text box is checked, the New Value (4) is reevaluated for each instance. This value is then assigned to each instance. It is important to ensure that the value is in the family table. In multi-level family tables, this task is only performed for instances for which the parameter is in the family table of the direct parent generic, even if this is itself an instance.
6.If model is Generic
Use the Change Parameter in Generic check box to select whether the model is edited if it is an instance and also has a generic part.
If this check box is selected, the result of the revision may vary depending on whether it is a generic parameter or a family table parameter.
Remove restricted definition
You can use this task to remove the restricted flag from one or more parameters. The removal is performed via the restriction definition file.
Proceed as follows
1.To access this file, you need a list of the general restrictions for all parts to be revised. You can use the report tasks to create this list; see Report Parameter Values.
2.An .lst file with the corresponding restrictions must be created:
Sample file: Delete all restrictions (except those created by relationships)
restricted.lst
ND_ParamDefArr_K01 = {
}
Sample file: Delete selected restrictions
If only some of the restrictions are to be deleted, the remaining restrictions must be redefined in the file.
restricted.lst
ND_ParamDefArr_K01 = {
{ Name = test2
Type = string
Default = 'blue_new'
Enum = { 'red_new', 'green_new', 'blue_new' }
}
}
3.The created file must be set in config.pro:
restricted_val_definition C:\restricted.lst
4.Restart Creo.
If Creo is not restarted, the set file will not be used.
You can then record a map key that you can also use with other models with the task Start Mapkey:
5.Open a part with restricted parameters.
6.Record a map key:
a.Open the Creo Parameter Editor.
b.Go to Tools > Update Constraint Definition.
c.A new dialog box will open. Select the checkbox in this dialog box.
d.Close the dialog box by clicking Assign.
e.Close the Parameter Editor by clicking OK.
Tip: You can use Variables. |