Skip to main content
6-Contributor
March 29, 2018
Question

Custom Java Button

  • March 29, 2018
  • 2 replies
  • 2387 views

I have created a Custom Java program to get the current date. The code functions properly outside CREO Schematics. I created a custom Java button and placed it on the Custom Ribbon tab. When I toggled

the button I get the "Error: Method call failed". I have placed my Date_Label.Class complied Java code in the

rsdesigner/utils directory where my CREO schematics was installed. I can't figure what is wrong.

Below is how I defined the button.

 

2 replies

1-Visitor
April 5, 2018

Have a look at the java code examples, you need to follow them. You should find it in your $INSTALL_DIR.

Search for *.java files. There is spezial paradigm ´so that your code runs embedded in the creo jvm.

Hava a nice day

 

Leopold

 

 

 

1-Visitor
April 5, 2018

maybe you should have a look at thie following link:

 

https://forkedbranch.eu/en/getting-started-j-link-api-creo-parametric/

 

Have a nice day

 

Leopold