Skip to main content
1-Visitor
April 25, 2016
Question

Why this mapkey doesn't work the first time

  • April 25, 2016
  • 5 replies
  • 5560 views

Hi,

I make a mapkey to to "edit position" (in mouse popup menu) on assembly component (see below this message).

This mapkey never work until I make manualy a first time a right clik and edit definition.

Do you know how to correct this problem?

PS: I have the same problem with "select parent" in mouse popup menu.

Mapkey:

mapkey DCONeditdef ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\

mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `Redefine`;

Config:

Creo 2.0 M190

Thanks for your reply.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

5 replies

1-Visitor
April 25, 2016

No sure about what you trying to redefine, instead of recording your mapkey using the right mouse button try recording it with the ribbon


For Selecting parent i have

mapkey asp @MAPKEY_LABELAssembly Select Parent;\

mapkey(continued) ~ Activate `rmb_popup` `Selobj_parent`;

bliboutet1-VisitorAuthor
1-Visitor
April 26, 2016

I try to simplified my mapkeys. To select parent I have:

mapkey DCONparent ;~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\

mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `Selobj_parent`;

With my mapkey, I have the same problem, I must make action one time in the model to have possibility to use the mapkey after.

1-Visitor
April 26, 2016

you just need to remove the bloat ->

;~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`; and ~ Close `rmb_popup` `PopupMenu`

bliboutet1-VisitorAuthor
1-Visitor
April 26, 2016

I tested with the mapkey bellow, without success. We must make I time the action before the mapkey run.

mapkey DCONparent ~ Activate `rmb_popup` `Selobj_parent`;

mapkey DCONeditdef ~ Activate `rmb_popup` `Redefine`;

12-Amethyst
April 26, 2016

I use the same mapkey and it works fine, I use this mapkey so much I have it attached to a function key. I also have in my config.pro

cmdmgr_trail_output yes

mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\

mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;~ Activate `rmb_popup` `Selobj_parent`;

bliboutet1-VisitorAuthor
1-Visitor
April 27, 2016

HI, I make the test

This is the log in the message log box of Creo:

   27-Apr-16 10:01:01

   Showing part 7021052D.  >> Select the part

   Mapkey error: Invalid trail file device and component, 'rmb_popup', 'Redefine'. >>Execute mapkey with error

   Showing part 7021052D.  >> Select the part

   Select any reference for auto type constraining.>>Execute redefine with the RMB with success

   Showing part 7021052D.  >> Select the part

   Select any reference for auto type constraining.>>Execute mapkey with success

   Component redefined successfully.

In fact, just after opening an assembly, the mapkey doesn't work. After execute the action with RMB, the mapkey run. After changing the active model, we must make the action one time with RMB and after the mapkey run.

If you haven't solution, I'll open a case to the PTCSupport.

Tanks

1-Visitor
April 27, 2016

Try to empty your personal config.pro except the mapkeys DCONparent and DCONeditded.

And relaunch Creo

bliboutet1-VisitorAuthor
1-Visitor
April 27, 2016

Test is done

I start with just the mapkey in config.pro. This is my message log of creo:

   Erreur de macro clavier : Invalid trail file device and component, 'rmb_popup', 'Redefine'. >>Execute mapkey with error

   Sélectionner une interface de composant dans l'assemblage pour définir le placement

   Redéfinition du composant réussie. >>Execute redefine with RMB - Success

   Sélectionner une interface de composant dans l'assemblage pour définir le placement

   Redéfinition du composant réussie. >>Execute mapkey with sucess

1-Visitor
April 27, 2016

Bonjour,

est ce que tu peux essayer cette mapkey en remplacement de DCONeditded

mapkey test  ~ Command `ProCmdRedefine`;

pour ce qui est de DCONparent  je n'ai pas de solution en passant par les menus.

bliboutet1-VisitorAuthor
1-Visitor
April 27, 2016

Ca ne marche pas non plus.

Je vais ouvrir un appel chez PTC

Encore merci

1-Visitor
December 3, 2016

Hi, I have the same mapkey problem when trying to automate commands that are only available in the right-mouse-button menu.

It seems they only work if defined in the same session in which they were recorded, otherwise, they need some kind of a "wake-up" by the way of first right-clicking and making the right-mouse-button menu appear ...

I was wondering if you had a successful resolution of your case with PTC.

bliboutet1-VisitorAuthor
1-Visitor
December 5, 2016

Hi, Sorry but we never open a case in the PTC Support. We never switch off our station, so we need to do manually 1 time per week and after the mapkey run correctly.

Best regards.