Skip to main content
17-Peridot
October 29, 2019
Solved

J-Link, managing 3D model dimensions

  • October 29, 2019
  • 12 replies
  • 6961 views

Hello!

 

Please tell me where to start.
I need to resize in a 3D model using J-Link

I loaded the class into the model, but it threw an error.

 

Best Regards.

Best answer by MartinHanak

Hi,

in install_test_05.zip you can find the result of my coding ... see pfcInstallTest.java

Following files contain paths related to my directory structure - you have to modify these files to adapt to your environment:

  • compilation_1.8.bat
  • Creo 5.0.2.0.bat
  • protk.dat

how_to_launch_app.png shows you how to start application from running Creo session.

12 replies

24-Ruby III
October 31, 2019

Hi,

please upload source code you want to repair. Also publish Creo version and java version.

VladiSlav17-PeridotAuthor
17-Peridot
November 1, 2019

Thanks for your reply!
Sorry to have provided so little information initially.

I read in the instruction manual that the code for the model needs to be loaded from the model itself.

Then I decided to consider an example for creo:

C:\Program Files\PTC\Creo 5.0.2.0\Common Files\otk_java_free\exercises\exercise_6

I compiled classes and put them in the creo working folder.

After which I wanted to add the class to the model as follows:

1.PNG

Pointed out the parameters of my class:

2.PNG

And got the following error:

3.PNG

Creo Version: 5.0.2.0.
Java version: jdk 11.

It seems to me that the error is not in the code, but in my actions. First I need to understand the following:
-how to run classes in a 3D model?
- What is the method for resizing a 3D model?

I will be very grateful if you show some simple example.

Best Regards.

24-Ruby III
November 1, 2019

Hi,

please upload your "instruction manual".