×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Modifying a Mapkey

Modifying a Mapkey

Modifying a Mapkey

(OP)
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

RE: Modifying a Mapkey

> 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.

RE: Modifying a Mapkey

text editor is pretty much the best way


RE: Modifying a Mapkey

(OP)
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?

RE: Modifying a Mapkey

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;

RE: Modifying a Mapkey

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

RE: Modifying a Mapkey

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources