Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying a Mapkey

Status
Not open for further replies.

JCReynolds79

Automotive
Sep 6, 2007
115
Hi all,

How on earth do I modify a previously created mapkey?

Lets say I recorded a series of clicks/keyboard entries as a mapkey, is there a way to view the code that has been saved for this key?

Lets say there are 20 mouse clicks and now I decide that mouse click #18 needs to be different, instead of re-recording the long process, is there a way to go in and just change mouse click #18?

Also if I recieve a mapkey from someone and need to know howit works, how can I interogate it to see the commands used?

Many thanks in advance.

Jon Reynolds
 
Replies continue below

Recommended for you

> how can I interogate it

Text editor.

> modify

It ~can~ be done if you speak the language. (I don't.)

Search the forum. I think there've been some really informative
discussions on the subject. Search the web as well. Seems I've
seen some interesting articles on Olaf Cortenson's site and / or
synthix.com (spelling may be incorrect on either) re the subject.

Long and short; unless you want to invest the time researching the
subject and learning syntax, re-record the mapkey. I recommend
saving it to a new file and manually (text editor) replacing the
version that's stored in config.pro (vs. Modifying it with the
mapkey recorder) after 'debugging' it.
 
Hi; thanks for the replies.

Viewing it in a text editor is fine...but where do I find the mapkey to open in the text editor? Is it stored within the config.pro?
 
yes in your config.pro

it will follow the format of something like

mapkey p1 ~ Activate `main_dlg_cur` `ProCmdFtExtrude.a_feat`;\
mapkey(continued) ~ Input `main_dlg_cur` `maindashInst0.def_depth1_ip` `5`;\
mapkey(continued) ~ Update `main_dlg_cur` `maindashInst0.def_depth1_ip` `5`;\
......
so on and so forth

and if you want a mapkey to call a mapkey..use % before the mapkey name

mapkey bb %wd;%ex;%rx;
 
Tools > Mapkeys > Save All save to different file than config.pro you can use .txt format and edit it in Word or Notepad etc.

If you want to view the PRo/E code lines as you create a Mapkey or use Pro/E you can use the
tail -f trail.txt.## command in a dos window which I believe you can get a Windows download for which will show you the end of your trailfile as it's being created. Using this is how I found out that PRo/E's new selection tool was poorly written because it uses Location of selection type in list as the command. So Feature select is different between Assembly and Part modes. Once you get in the habit of editing these you'll soon know how to read Pro/E. For any kind of mapkey that involves entering text or browsing to files you can use the Pause option and have descrptive messages and Mapkey Guide Info to help out any users.

Michael
 
That sounds very interesting mjcole. I like the idea of pausing during mapkey operation...could this be done in such a way that whilst running the mapkey a user can be prompted to enter a value of a parameter stored in the model?

Thanks for all other replies too.

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor