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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

UI action listener

MV_9331345
4-Participant

UI action listener

Good morning everybody,

I'm trying to create a Java Toolkit application that is fired when the user push a specific button of the UI ( Parameter )

Any hint?

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
remy
21-Topaz I
(To:FV)

Right so you need to use bracket command ie the listener of an existing command.

When you search OnAfterCommand in our knowledge base you will find this article that pretty much summarize how to use it: https://www.ptc.com/en/support/article/cs145364 

The article yields the process (that's two-fold too):

  1. Register the listener
  2. Create the listener

it points to examples shipped with Creo at location: <creo_jlink_loadpoint>/jlink_appls/jlinkexamples

 

and this is the page in the documentation: 

 

remy_0-1655272599061.png

 

View solution in original post

5 REPLIES 5
remy
21-Topaz I
(To:MV_9331345)

Hi you need to get started in creating a button with JOTK.

 

In the Technical Support Knowledge base you can rely on this article : https://www.ptc.com/en/support/article/cs128866 that disclose some code.

 

In a nutshell, the process is two-fold:

  1. create the button
  2. designate it

Also have a look to the User guide page 99 (Creo 8):

remy_0-1655217742223.png

 or search "UICreateCommand" that's the Create method. 

FV
17-Peridot
17-Peridot
(To:MV_9331345)

pfcCommand.UICommandBracketListener.OnAfterCommand

remy
21-Topaz I
(To:FV)

Right so you need to use bracket command ie the listener of an existing command.

When you search OnAfterCommand in our knowledge base you will find this article that pretty much summarize how to use it: https://www.ptc.com/en/support/article/cs145364 

The article yields the process (that's two-fold too):

  1. Register the listener
  2. Create the listener

it points to examples shipped with Creo at location: <creo_jlink_loadpoint>/jlink_appls/jlinkexamples

 

and this is the page in the documentation: 

 

remy_0-1655272599061.png

 

MV_9331345
4-Participant
(To:remy)

Thanks @remy for your hint.

I tested right now, I found the command name on the trail file : "ProCmdMmParams" and following the example inside pfcCommandExamples.java I reach my point.

THANK you very much!

Have a nice day.!

 

remy
21-Topaz I
(To:MV_9331345)

Good to hear you're on track.

 

Enjoy your day too.

Top Tags