Parameter Editor
Location
Main Class
<creo_jlink_loadpoint>/jlink_appls/jlink_param
com.ptc.jlinkdemo.parameditor.ParamEditor
The parameter editor example demonstrates a synchronous Creo Object TOOLKIT Java user interface that governs parameters and parameter values in the model. Setup and run the Creo Object TOOLKIT Java Parameter Editor example using the following:
1. Set the path and CLASSPATH variables to include the Java Development Kit as described in (link) as described in Java Options and Debugging.
2. Set the CLASSPATH to include the jlink_param directory and the Creo Object TOOLKIT Java synchronous Jar file (otk.jar). Refer to the section Testing the J-Link Synchronous Installation for more information on setting the CLASSPATH.
3. Compile the code.
On Windows, execute the batch file compile.bat.
4. Start Creo+ from a directory containing the creotk.dat or protk.dat file. Create or retrieve any model that contains parameters.
5. Select J-Link Parameter Editor from the Applications Menu. The system will display a graphical interface that contains a list of parameters for the selected model as shown in the following figure.
The parameter editor also supports the following customized types of parameters:
Using the editor to create parameters with descriptive names (user interface names) of up to 80 character. The value of the assigned user interface name will be displayed as the parameter name in the Creo Object TOOLKIT Java user interface.
Creating parameters that obey specific rules:
Enumerated lists
Specified ranges
Specified ranges, with values limited to a certain increments (for example, any multiple of 5 between 0 and 100).
When you open the Creo Object TOOLKIT Java user interface, the parameter value is governed by the rules assigned to it. If the parameter value is changed to fall outside the permitted values it will be highlighted in red.
Was this helpful?