Example: User-Defined Parameters
In the following example, the contents of a user-defined parameter file in the XML file format are displayed for the MILL workcell type. For each workcell type, define a separate <MfgSeqUDParamCollection Type="workcelltype"> tag in the user-defined parameter XML file. The workcell type is case-sensitive and must be one of the following types:
• MILL
• MILL-TURN
• LATHE
• WIRE EDM
The following data types are supported for the user-defined parameters:
• string
• integer
• double
The following image shows sample content of the user-defined parameter XML file:
1. User-defined parameter name
2. Values of the user-defined parameter
1. Set the mfg_custom_sequence_param_file configuration option to point to the path where the user-defined parameter XML file is stored.
2. Open the manufacturing model. Ensure that the active operation references a workcell.
3. Click the Parameters tab when defining an NC sequence.
4. On the
Parameters tab, click
.
The User-Defined Parameters dialog box opens. The parameters defined in the user-defined parameters XML file are parsed and displayed in the dialog box.
You can modify a value for each parameter. However, the values you specify in the User-Defined Parameters dialog box for each parameter must be in accordance with the restrictions imposed, if any, for that parameter in the user defined parameter file. For example, in the user defined parameter file above, the parameter SPINDLE_SPEED can have a minimum value of 3000 and maximum value of 40000. If the value you enter is less than 3000 or greater than 40000, Creo NC displays an error message.
If you want to add or delete parameters or modify one or more existing parameters, you can do so only in the user-defined parameters XML configuration file. After making the necessary modifications, save the *.xml file and reopen the manufacturing model for which you edited the parameter definitions. You are prompted to confirm whether you want to load the new definitions or retain the existing definitions. Click Yes to load the new definitions. Then click > on the Manufacturing tab and confirm that you want to update.
| It is recommended to use the Update User-Defined Parameters command to match the updated definitions every time after you reload the modified XML file on model retrieval. |
For more information on updating user-defined parameters, see
Updating User-Defined Parameters.