Skip to main content
Jan 31, 2017 3:04 PM UTC
Question

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

Jan 31, 2017 3:24 PM UTC

Try this:

mapkey e @MAPKEY_NAMEEdit;@MAPKEY_LABELEdit;\

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

tleatiAuthor
Jan 31, 2017 3:56 PM UTC

Hi Tom,

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

Jan 31, 2017 4:16 PM UTC

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`;

Jan 31, 2017 5:45 PM UTC

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

tleatiAuthor
Feb 1, 2017 8:50 AM UTC

Hi Jose,

Thanks for your reply. I also don't like to use RMB, that mapkey had been recorded like that because indeed there is no icon command for Edit, at that time the only way was to RC at that time.

And yes it's certainly better to copy-paste just the minimum and general commands in strings.

Anyway, I tried it and also yours works just for features in parts, not in components positioning and sub-features in assys. If you say it works on the 3, I will have it working when we update to it then.

Bye

Feb 1, 2017 9:58 PM UTC

Strange, I haven't Creo 2 installed so I can't test it, but it should work also on Creo 2. If Creo changes so much between releases we would need to recreate all one by one from the scratch.

Do as I said, record a mapkey calling the command from the search bar:

aaa.png

do the same in assembly and join the two mapkeys.

Jose