Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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.
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