cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Custom Java Button

ptc-6306282
6-Contributor

Custom Java Button

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 2

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

 

 

 

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

Top Tags