UI action listener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
- Labels:
-
Jlink
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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):
- Register the listener
- 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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- create the button
- designate it
Also have a look to the User guide page 99 (Creo 8):
or search "UICreateCommand" that's the Create method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
pfcCommand.UICommandBracketListener.OnAfterCommand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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):
- Register the listener
- 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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Good to hear you're on track.
Enjoy your day too.
