|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/jlink_appls/install_test
|
StartInstallTest
|
| • | Application start and stop functions. |
| • | Menubar functions. |
| • | Custom UI functions. |
| • | Sequences, arrays, exceptions, and action listener functions. |
| 1. | Set the path and CLASSPATH variables to include the Java Development Kit as described in Java Options and Debugging. |
| 2. | Set the CLASSPATH to include the Creo Object TOOLKIT Java synchronous archive and the current directory. On Windows set the CLASSPATH as:
set CLASSPATH=.;<creo_loadpoint>\<version>\Common Files |
| 3. | Compile the java files in the directory using the command javac *.java. |
| 4. | Create a config.pro file if you are using Java 1.1. Add the following line to this file:jlink_java2 offNote
For more information on the supported JDK versions for synchronous Creo Object TOOLKIT Java refer to http://www.ptc.com/partners/hardware/current/jlink.htm.
|
| 5. | Run Creo Parametric. The Creo Parametric File menu has a new button, added by the Creo Object TOOLKIT Java application, called J-Link Install Test. When you choose this button, the Creo Object TOOLKIT Java application displays a custom dialog indicating whether the installation test has succeeded:
![]() Note
On Windows the results dialog may appear behind the Creo Parametric window. Use Atl-Tab to switch to the Java dialog.
|
|
Location
|
Main Class
|
|---|---|
|
<creo_otk_java_loadpoint>/jlink_appls/jlinkexamples
|
pfcExamplesMenu.java, however note that not all examples may be tied to this class.
|
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/jlink_appls/jlink_param
|
com.ptc.jlinkdemo.parameditor.ParamEditor
|
| 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 Parametric 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.![]() |
| • | 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:
|
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/jlink_appls/jlink_elev
|
com.ptc.jlinkdemo.round.RoundChecker
|
| 1. | Set the path and CLASSPATH variables to include the Java Development Kit as described in (link). |
| 2. | Set the CLASSPATH to include the jlink_elev directory and the Creo Object TOOLKIT Java synchronous Jar file (otk.jar). |
| 3. | Compile the code. On Windows, execute the batch file compile.bat.
|
| 4. | Load any Creo Parametric model with rounds. Modify the round to less than 0.5. A Creo Object TOOLKIT Java dialog that identifies the problem will be displayed. The same dialog will appear if a new round that does not adhere to the specified dimensions is created. |
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/jlink_appls
/jlink_elev |
com.ptc.jlinkdemo.savecheck.
SaveChecker |