Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Most useful mapkeys

Hello, I just made a little change to my scripts in that it no longer reads the 'lang' variabl, but the pro_lang variable.
This make it a bit more robust, because using a variable only used by ProE will prevent problems with other programs using the general windows lang variable. E.g. when a program needs the lang variable to be set to 'german' to run in german, you can still run ProE in italian by setting pro_lang to 'italian'.

Here are the files:
2010-09-08_183103_Open_Generic_0.04.ZIP

<a href="uploads/Zestje/2010-09-08_183759_Open_Drawing_0.07.ZIP" target="_blank" target="_blank">
</a>2010-11-11_113925_Pro_Engineer_Open_Drawing_0.08.ZIP

Update: replaced Open drawing script with version containing 32 bit and 64 versions. The previously posted version contained only the 64 bit version.

Edited by: Zestje
 
Do you guys/gals use a space pilot or something similar? That way you can "fly" around with your left hand and "pick" with your right mouse hand. I don't really feel a need for a bigger monitor because of this. I could never go back to "mouse only". Space Pilot rules! It alsoadds dedicated view buttons to your arsenal. It takes a day or two to acclimate to using your other hand though. But once you get it, it's Smokin'.


Perhaps the need for a bigger monitor is to compensate for a lack in other areas?
smiley36.gif
 
Some of my favorit mapkeys:


$F1 Cancel . Exits sketcher and quite some other "edit definitions" without OK
$F2 Accept . Exits sketch and quite some other "edit definitions" with OK
$F3 Redefine. Goes into edit definition for some features and components. If sketch in feature, it goes all the way into the sketch! Very powerful along with $F1 and 2


sr sketch revolve. First mark up a sketch plane (like FRONT) and type sr. Goes directly into the internel skech and is ready to draw the centerline!


iv Goes from a front orientation into an excakt isometric view (invtg(1/sqrt2))


nd Creates a new drawing with the same name as the active prt/asm and locates a list of template drawings to pick from. Most used template.drw is highlighted and ready for enter!


at makes a .sat file. same name as active prt.Pauses for layer display. After creating on working dir it opens the .sat file automaticly into new prt for viewing the result.
 
Hello GunnarHansen...

How do you accomplish this mapkey???

"nd Creates a new drawing with the same name as the active prt/asm and locates a list of template drawings to pick from. Most used template.drw is highlighted and ready for enter!"

Thanks!
 
GunnarHansen said:
Some of my favorit mapkeys:


$F1 Cancel . Exits sketcher and quite some other "edit definitions" without OK
$F2 Accept . Exits sketch and quite some other "edit definitions" with OK
$F3 Redefine. Goes into edit definition for some features and components. If sketch in feature, it goes all the way into the sketch! Very powerful along with $F1 and 2

Did you record these mapkeys or write them up yourself? I ask because, with your $F1 for example, to exit sketcher is different for certain features. Like exiting a regular sketch entirely involves different commands to exiting a revolve, extrude or a VSS. How does your $F1 command handle exiting different feature sketches?


Same question applies to your $F2 and $F3 commands. Would you mind posting the mapkeys as they appear in your config.pro?

Edited by: neuronex
 
Hello GunnarHansen...

How do you accomplish this mapkey:

"nd
Creates a new drawing with the same name as the active prt/asm"

???

Thanks!
 
Here you are $F1-3. NB WF5??They are recorded. F3 is recorded from different situations, and put together in NotePad. The tip for F1 and F2 is to record #activate-window and then Cancel/OK... boxes. It might be needed to record different boxes and put it together in NotePad





mapkey $F1 @MAPKEY_LABELCANCEL SKETCH ETC;\
mapkey(continued) ~ FocusOut `main_dlg_cur` `maindashInst0.constr_offset_menu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.stdbtn_2`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Windows`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Windows.psh_win_activate`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `no`;~ FocusIn `UI Message Dialog` `yes`;\
mapkey(continued) ~ Activate `UI Message Dialog` `yes`;~ Activate `0_std_confirm` `OK`;
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `View`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `View.psh_view_repaint`;\
mapkey(continued) ~ Activate `new_compplace` `cancelbutton`;~ Activate `0_std_confirm` `OK`;\



mapkey $F2 @MAPKEY_LABELSKETCH OK;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdSketDone.sket_r`;\
mapkey(continued) ~ Activate `Odui_Dlg_01` `stdbtn_1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Done`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdViewRefit.view`;\
mapkey(continued) ~ Activate `Odui_Dlg_00` `stdbtn_1`;~ Activate `new_compplace` `okbutton`;\
mapkey(continued) ~ Activate `mod_exp` `okbutton`;#DONE/RETURN;



mapkey $F3 @MAPKEY_LABELEDIT DEFINITION;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Edit.pshRedefine`;\
mapkey(continued) ~ Activate `main_dlg_cur` `chkbn.revolve_1_placement.0`1 ;\
mapkey(continued) ~ Trigger `revolve_1_placement.0.0` `PH.axis_select_list` `0`;\
mapkey(continued) ~ Trigger `revolve_1_placement.0.0` `PH.axis_select_list` ``;\
mapkey(continued) ~ Activate `revolve_1_placement.0.0` `PH.Sketch`;\
mapkey(continued) ~ Activate `main_dlg_cur` `chkbn.extrev_1_placement.0`1 ;\
mapkey(continued) ~ Activate `extrev_1_placement.0.0` `PH.Sketch`;\
mapkey(continued) ~ Activate `Odui_Dlg_01` `stdbtn_3`;~ Activate `Odui_Dlg_00` `stdbtn_3`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node34`;\
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` `Redefine`;#SECTION;#DONE;#SKETCH;


It works like this:


1) Select feature or component. On screen or in model tree.
2) Press the F3 botton for edit definition. Goes directly into sketcher if any!!
3) Press F1 for CANCEL or F2 for OK and you are out of it all
Edited by: GunnarHansen
 
Edit, Edit Definition, and Edit References Mapkeys.


Select the item you want to do the operation to, then use the mapkey


mapkey ee @MAPKEY_LABELedit;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node0`;\
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` `EditModify`;


mapkey ed @MAPKEY_LABELedit definition;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Edit.pshRedefine`;


mapkey er @MAPKEY_NAMELaunches edit references command;\
mapkey(continued) @MAPKEY_LABELEdit References;~ Select `main_dlg_cur` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Edit.pshReroute`;y;
 
Hello GunnarHansen...
Thanks for sharing.... but...

How do you accomplish this mapkey:

"nd
Creates a new drawing with the same name as the active prt/asm"

?
 

Sponsor

Articles From 3DCAD World

Back
Top