Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

edit map key code 2

Status
Not open for further replies.

smeagol

Mechanical
Nov 4, 2003
12
How do you directly edit map key code, instead of creating each step through the map key front end tool?

Thanks in advance.
 
Replies continue below

Recommended for you

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.
 
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.
 
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.
 
Thank you and will do.

Rgds
Matt.
 
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".
 
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.
 
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:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor