I'm not able to create a mapkey where I have to activate a command present in a right button menu, after selection a model.
mapkey _test ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Command `user_popup_item_cmd`;
That command is not present in any other place on the ribbon.
Any possible solution?
I think that it is not possible to record right button menu click into a mapkey. But I am not quite sure.
It's possible to use an RMB click in a mapkey, as it has always been, but I would strongly advise not to use it.
I used to make mapkeys in WF2. In the beginning I used a lot of RMB clicks, but sometimes these mapkeys would just stop working in the middle of a session. When I reprogrammed them using the menu bar, they always worked flawless.
On Creo 2 however, I haven't made a lot of mapkeys yet, Since THEY stole our menu bar, it's gotten a lot harder to make them decent.
You probably want to make a mapkey that automates something in the dimension properties, right? I've launched the same question a while ago, but never got the answer I was hoping for...
The goal of this mapkey is start a function of a auxiliary application, not an ootb command, this is why I wrote that is present only in RMB menu.
The mapkey has to work in assembly and part environment, not in drawing.
Are you selecting a model before calling the mapkey?
I tried the same here and the mapkey worked fine.
mapkey test ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Command `EMX_MOD_COMP`;
Or maybe some problem in your application.
I made a short video:
yes, i'm able to reproduce what you have done in the video, but the problem is that after Creo restarting the mapkey doesn't work.
To make it work I have to do before a manually click with RMB and then it always works...