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

Mapkey for all possible "Edit" commands

Highlighted
Marble

Mapkey for all possible "Edit" commands

Hello,

some time ago I created a mapkey to select the command "Edit" for editing for example a feature in a part. It's comfortable, but it would be even more if with it I could also execute the edit for components positioning in assemblies and for internal features of components in assemblies model trees.

Here below (and also attached) a video of what I can/cannot currently do with that mapkey:

Video Link : 7534

(I run it with the a keystroke).

As you can see it gives back error when attempting to run the mapkey within assemblies. I think it's because it had been recorded within a part.

Vice-versa, if I try to record one in an assembly, it doesn't work everywhere. (I suppose it's the selection with right mouse button to be a critical point).

The current mapkey script is this one:

mapkey e @MAPKEY_LABELmodifica;\

mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node11`;\

mapkey(continued) ~ PopupOver `main_dlg_cur` `ActionMenu` 1 `PHTLeft.AssyTree`;\

mapkey(continued) ~ Open `main_dlg_cur` `ActionMenu`;~ Close `main_dlg_cur` `ActionMenu`;\

mapkey(continued) ~ Activate `main_dlg_cur` `L05Edit`;


Anyone has already done this, or has an idea on how to write a script that fits all the "edit" cases?

Thanks

bye

16 REPLIES 16

Re: Mapkey for all possible "Edit" commands

Try this:

mapkey e @MAPKEY_NAMEEdit;@MAPKEY_LABELEdit;\

mapkey(continued) ~ Command `ProCmdEditNoAutoRegen@PopupMenuTree`;

Re: Mapkey for all possible "Edit" commands

Hi Tom,

thanks for your reply. I tried it and unfortunately doesn't work...it doesn't do anything.

Re: Mapkey for all possible "Edit" commands

Tom's mapkey looks like it's from Creo 3.0.  I think you are still on 2.0?

Anyway, this one works for me (most of the time) for "editing" of features or component placements:

mapkey es @MAPKEY_LABELEdit Dimension Values (es);\

~ Command `ProCmdEditShowDim`;

Re: Mapkey for all possible "Edit" commands

Hi Paul,

ah yes, I still have Creo 2.0 M110 and forgot to write it. (we hope to upgrade soon).

I have tried also yours but it doesn't work either.

Thanks

Re: Mapkey for all possible "Edit" commands

Hmm, that's strange - that's as basic as you can get with mapkeys - as it uses the internal ProCmd... function.

I am wondering if anything changes if you copy and paste the contents of the attached file into your config.pro.

Re: Mapkey for all possible "Edit" commands

Oh, forgot to mention that you should either rename my mapkey or delete your "e" mapkey - as it is, they are in conflict as the "e" mapkey will always execute and "es" will never execute...

Re: Mapkey for all possible "Edit" commands

This one was Creo 3, but try it:

mapkey e @MAPKEY_LABELmodifica;\

mapkey(continued) ~ Command `ProCmdEditNoAutoRegen`; ~ Command `ProCmdL05Edit`;

I don't like mapkeys created with RMB, they don't work most of the times. I prefer to click on a button and see what is the specific command for that. In this case, there wasn't any button, so I used the "search command" tool and searched for "Edit Dimensions". Repeat this in part end assembly environment and join the two commands. If you need this in other modules (drawing, manufacturing, mechanism, etc..) the command may be another.

Jose

Re: Mapkey for all possible "Edit" commands

Hi Paul,

thanks for your reply. I tried yours (with the correct name), but works just for edit dimensions of features in parts, as mine currently does, without editing positioning of assemblies or sub-feature in assemblies. Just for curiosity, does it work for these too in your machine? Cause if yes maybe the problem is my version of Creo.

Bye

Re: Mapkey for all possible "Edit" commands

Hi Tom,

I have to correct my reply to your mapkey, yours does the same as Paul's, so it works for editing features in parts but not for components positioning or sub-features in assemblies.

Bye