Creo Mapkey Examples

Below are some Creo mapkeys that I utilize.  They may or may not fit your particular requirements.

! The following nested mapkey will enable “x” to quit almost any command
!CREO ok
mapkey x @MAPKEY_NAMEQUIT CURRENT ACTION-DO NOT PASS GO;\
mapkey(continued) @MAPKEY_LABELQUIT CURRENT ACTION-GO DIRECTLY TO JAIL;\
mapkey(continued) %`q1;%`q2;%`q3;%`q4;%`q5;%`q6;%`q7;%`q8;%`q9;%ww;

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 `q8 ~ Activate `main_dlg_cur` `ProCmdSketQuit.sket_r`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;\
mapkey(continued) ~ Activate `Odui_Dlg_01` `stdbtn_2`;~ FocusIn `UI Message Dialog` `yes`;\
mapkey(continued) ~ Activate `UI Message Dialog` `yes`;~ Enter `main_dlg_cur` `dashInst0.Quit`;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.Quit`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;
mapkey `q9 @MAPKEY_NAMEEXIT OUT OF THE ASSEMBLY MODE;\
mapkey(continued) @MAPKEY_LABELEXIT ASSEMBLY MODE;\
mapkey(continued) ~ Activate `main_dlg_cur` `dashInst0.stdbtn_2`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message Dialog` `yes`;

!WORKING WINDOW
!================
!CREO OK
mapkey ww @MAPKEY_NAMEACTIVATE WINDOW;@MAPKEY_LABELWW;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_View_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdWinActivate`;

!ERASE MODELS AND DRAWINGS FROM SESSION
!=========================================
mapkey er @MAPKEY_NAMEERASE OBJECTS FROM CURRENT SESSION;\
mapkey(continued) @MAPKEY_LABELERASE OBJECTS;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdModelErase` ;~ Activate `file_erase` `sel_list`;\
mapkey(continued) @MANUAL_PAUSE     ! ! ! ! ! ! ! ! !   WARNING  ! ! ! ! ! ! ! !      \
mapkey(continued) \n\n————– YOU ARE ABOUT TO ERASE ME ————–\n\n?????   ARE \
mapkey(continued) YOU SURE YOU WANT TO ERASE ME  ?????  \n\n-             OK THEN – HIT ENTER  \
mapkey(continued) –  \n\n-            ! ! ! ! ! ! ! GOODBYE ! ! ! ! ! ! ! -;\
mapkey(continued) ~ Activate `file_erase` `OK`;

 

!MEASURE DISTANCES BETWEEN GEOMETRY
!=========================================
!CREO OK
mapkey md @MAPKEY_NAMEMEASURE DISTANCE BETWEEN PLANES;\
mapkey(continued) @MAPKEY_LABELMEASURE DISTANCE;~ Command `ProCmdNaMeasureDistance`;

!REGENERATE MODEL, ASSEMBLY, DRAWINGS
!=========================================
!CREO ok
mapkey re @MAPKEY_NAMEREGENERATE MODELS, ASSEMBLIES, DRAWINGS;\
mapkey(continued) @MAPKEY_LABELREGENERATE ALL;%RE1;%RE2;%RE3;

!CREO OK
mapkey re1 @MAPKEY_NAMEregenerate model;@MAPKEY_LABELregenerate;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Model_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdRegenPart`;
mapkey re2 @MAPKEY_NAMEregenerate assemblies;@MAPKEY_LABELregenerate;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Model_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdRegenAuto`;
mapkey re3 @MAPKEY_NAMEregenerate drawings;@MAPKEY_LABELregenerate;\
mapkey(continued) ~ Command `ProCmdDwgRegenModel` ;#AUTOMATIC;

 

!SAVING, ERASE CURRENT WINDOW
!=================================================
!CREO OK
mapkey q @MAPKEY_NAMESAVE, ERASE, QUIT WINDOW;@MAPKEY_LABELQUIT WINDOW;%re;\
mapkey(continued) ~ Command `ProCmdModelSave` ;~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1  `File`;\
mapkey(continued) ~ Select `main_dlg_cur` `File.cb_file_erase`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Close `main_dlg_cur` `File.cb_file_erase`;\
mapkey(continued) ~ Activate `main_dlg_cur` `psh_erase`;~ Activate `file_erase` `sel_list`;\
mapkey(continued) ~ Activate `file_erase` `OK`;

!CREO OK
mapkey s @MAPKEY_NAMESAVE CURRENT FILE;@MAPKEY_LABELSAVE FILE;\
mapkey(continued) ~ Select `main_dlg_cur` `appl_casc`;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdModelSave` ;~ Activate `file_saveas` `Current Dir`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;

!=====================================================================
!DRAWING COMMANDS
!=====================================================================

!FILE OPEN DRAWINGS from WORKING DIRECTORY
!=========================================
mapkey `fodwd @MAPKEY_NAMEFILE OPEN A DRAWING FROM\nTHE WORKING DIRECTORY;\
mapkey(continued) @MAPKEY_LABELDRW OPEN WORKING DIRECTORY;~ Select `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelOpen` ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
mapkey(continued) ~ Activate `file_open` `Current Dir`;~ Open `file_open` `Type`;\
mapkey(continued) ~ Close `file_open` `Type`;~ Select `file_open` `Type` 1 `db_4`;

!FILE OPEN DRAWINGS from WORKSPACE
!=========================================
mapkey `fodws @MAPKEY_NAMEFILE OPEN DRAWING WORK SPACE;\
mapkey(continued) @MAPKEY_LABELFILE OPEN DRAWING WORK SPACE;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdModelOpen` ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
mapkey(continued) ~ Activate `file_open` `workspace_pb`;~ Open `file_open` `Type`;\
mapkey(continued) ~ Close `file_open` `Type`;~ Select `file_open` `Type` 1 `db_4`;

mapkey w @MAPKEY_NAMECALL `FODWS FILE OPEN DRAWING WORK SPACE;\
mapkey(continued) @MAPKEY_LABELFILE OPEN DRAWING WORK SPACE;%`FODWS;
!=========================================

 

!UPDATE DRAWING SHEET VIEWS – !CREO OK
!========================================
!CREO OK
mapkey up @MAPKEY_NAMEUPDATE ALL SHEETS;@MAPKEY_LABELUPDATE SHEETS;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Review_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdDwgUpdateSheets` ;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Layout_control_btn` 1;

!2D DRAWING COMMANDS
!========================================
!CREO ok
mapkey c @MAPKEY_NAMECOPY AND TRANSLATE 2D ITEMS;@MAPKEY_LABELCOPY 2D;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgXformTranslateCp`;

!CREO ok
mapkey tr @MAPKEY_NAMETRANSLATE 2 DIMENSIONAL OBJECTS;@MAPKEY_LABELTRANSLATE;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgXformTranslate`;

!CREO ok
mapkey rt @MAPKEY_NAMEROTATE 2 DIMENSIONAL OBJECTS;@MAPKEY_LABELROTATE;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgXformRotate`;

!CREO ok
mapkey tb @MAPKEY_NAMETRIM TO BOUND;@MAPKEY_LABELTRIM BOUND;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Sketch_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgTrimBound`;

!CREO ok
mapkey tc @MAPKEY_NAMETRIM TO CORNER;@MAPKEY_LABELTRIM CORNER;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Sketch_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgTrimCorner`;

!CREO ok
mapkey d @MAPKEY_NAMECREATE A DIMENSION;@MAPKEY_LABELDIMENSION;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn`1 ;\
mapkey(continued) ~ Command `ProCmdDwgCrStdNewRefDim`;
!=================================================

Leave a comment