|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/otk_java_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 J-Link 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. Note
The java file AsyncInstallTest.java is not compiled because it is used in the asynchronous mode only. Before compiling, rename this file to a non-Java file, that is, AsyncInstallTest.bak.
|
| 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 J-Link refer to http://support.ptc.com/partners/hardware/current/support.htm.
|
| 5. | Run Creo Parametric. The Creo Parametric File menu has a new button, added by the J-Link application, called J-Link Install Test. When you choose this button, the J-Link 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_jlink_loadpoint>/otk_java_appls/install_test
|
AsyncInstallTest
|
| • | Asynchronous J-Link setup |
| • | Creo Parametric start and stop methods |
| • | 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 J-Link asynchronous archive and the current directory. On Windows set the CLASSPATH as:
set CLASSPATH=<creo_loadpoint>\<version>\Common Files |
| 3. | Set the library path to include the asynchronous library and make sure that PRO_COMM_MSG_EXE is set. On Windows set the library path as:
set path=<creo_loadpoint>\<version>\Common Files\<machine type>\lib;%PATH%set PRO_COMM_MSG_EXE=<creo_loadpoint>\<version>\Common Files |
| 4. | Compile the java files in the directory using the command javac *.java. Note
|
| 5. | Run the application java [asynchronous flags] AsyncInstallTest <command to run Creo Parametric>. |
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/otk_java_appls/jlinkexamples
|
pfcExamplesMenu.java, however note that not all examples may be tied to this class.
|
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/otk_java_appls/jlinkasyncexamples
|
Many independent examples
|
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/otk_java_appls/jlink_param
|
com.ptc.jlinkdemo.parameditor.ParamEditor
|
| 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 jlink_param directory and the J-Link 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 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.![]() |
| • | Use the editor to create parameters with descriptive names (user interface names) of up to 80 characters. The value of the assigned user interface name will be displayed as the parameter name in the J-Link user interface. |
| • | Creating parameters that follow specific rules:
|
|
Location
|
Main Class
|
|---|---|
|
<creo_jlink_loadpoint>/otk_java_appls/jlink_elev
|
com.ptc.jlinkdemo.round.RoundChecker
|
| 1. | Set the path and CLASSPATH variables to include the Java Development Kit. |
| 2. | Set the CLASSPATH to include the jlink_elev directory and the J-Link 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 J-Link 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>/otk_java_appls/jlink_elev
|
com.ptc.jlinkdemo.savecheck.SaveChecker
|