×
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

edit map key code
2

edit map key code

edit map key code

(OP)
How do you directly edit map key code, instead of creating each step through the map key front end tool?

Thanks in advance.

RE: edit map key code

You can open your config.pro using your note pad.

Here is my mapkey to create PDF files

mapkey $F3 @MAPKEY_NAMEMake PDF;@MAPKEY_LABELPDF File;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1  `File`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Activate `main_dlg_cur` `File.psh_print`;\
mapkey(continued) ~ Select `print` `CascadeButton1`;~ Close `print` `CascadeButton1`;\
mapkey(continued) ~ Activate `print` `pdf995`;~ Activate `print` `OK`;

You will need to have pdf 995 installed for it to run.

JOSE FIGUEROA JR.

RE: edit map key code

(OP)
Hi JBFJR, thanks for your post. Just one more question though, do you have or know where to get more info on writing map key code? ie: something with the code explantion.

Thanks in advance.

RE: edit map key code

a semi-colon ";" followed by a space seperates commands.
and items inside of 'menu pick' is a menu pick button.

After that it is trial and error.

If you do find a list of commands for and editor please post.

JOSE FIGUEROA JR.

RE: edit map key code

(OP)
Thank you and will do.

Rgds
Matt.

RE: edit map key code

You can edit the Mapkey codes in any text editor.  Open your .pro file and edit using Wordpad or Notepad.
Create simple mapkeys using the mapkey interface in Pro/E.  Write the mapkey to a file and try to make sense of the commands used.  Mapkeys that are executed without screen picks or dbmenu picks are must easier. I am referring to picks only made in the Menu Manager menus.
Just type each menu pick after the "#" character and separate each command with a ";" character.
-------------------------------
For example if you want to create a mapkey to start the creation of a revolved protrusion the code would go something like:
mapkey cr @MAPKEY_NAMECreate rev protr;@MAPKEY_LABELRevolve;\
mapkey(continued) #Feature;#Create;#Protrusion;#Revolve;

This should bring you to the prompt "one side or both".

RE: edit map key code

You can also nest mapkeys up to (i think) 6 levels.  Nested mapkeys are preceded with a % instead of a #.

! The following mapkeys will enable "qq" to quit any command
! and bring you to the first menu.
MAPKEY q1 #done/return;#done/return;#done/return;#done/return;
MAPKEY q2 #return;#return;#return;#return;
MAPKEY q3 #Done-return;#Done-return;#Done-return;#Done-return;
MAPKEY q4 #Done sel;#Done sel;#Done sel;#done;#done;#done;#done;
MAPKEY q5 #quit refs;#quit del/sup;
MAPKEY q6 #done;#quit;#done;#quit;#confirm;#done/return;#done;#done;
MAPKEY q7 #done;#quit;#confirm;#done/return;#done;#done;

MAPKEY qq %q1;%q2;%q3;%q4;%q5;%q6;%q7;

I start most of my mapkeys with %qq so they will work from anywhere in the menu structure.

RE: edit map key code

Previous versions of Pro/E mainly used the right-hand menus, so the mapkey lists were like this:
mapkey(continued) #TABLE;#REPEAT REGION;#FIX INDEX;

Nowadays, most commands use drop-down menus or dialog boxes, so the mapkeys are harder to edit, eg:
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1  `View`;\

I usually record the mapkey by using menus, etc, then customise it later with a text editor.

A couple of hints for creating mapkeys:
http://www.cadmin.co.uk/proehelp/index.html?admin.htm#m...

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