cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Symbol at absolute coordinate via mapkey

RaphMORIN
14-Alexandrite

Symbol at absolute coordinate via mapkey

Hi,

We're switching from Creo 4 to Creo 11.

 

I had a mapkey to insert a symbol at an absolute coordinate. Now this mapkey doesn't work anymore in Creo 11.

 

I tried recording a new one but I get an error message.

 

The new mapkey for Creo 11 looks like this :

mapkey ca4 @MAPKEY_NAMEInsertion d'un cartouche sur format A4 horizontal;\
mapkey(continued) @MAPKEY_LABELInsertion cartouche A4;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdDwgCrSymInstCust` ;\
mapkey(continued) ~ Select `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Close `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Command `ProCmdPmaOptSymLib` `PRO_SYMBOL_DIR/cartouche_gravlor.sym`;\
mapkey(continued) ~ Timer `` `` `popupMenuRMBTimerCB`;~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Activate `rmb_popup` `Absolute Coordinates`;\
mapkey(continued) ~ Input `coordinputs` `XInputPanel` `2`;\
mapkey(continued) ~ Input `coordinputs` `XInputPanel` `28`;\
mapkey(continued) ~ Input `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ Update `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ FocusIn `coordinputs` `YInputPanel`;\
mapkey(continued) ~ Input `coordinputs` `YInputPanel` `8`;\
mapkey(continued) ~ Update `coordinputs` `YInputPanel` `8`;\
mapkey(continued) ~ Activate `coordinputs` `psh_ok`;

 

At the bottom of the screen I get this message.

RaphMORIN_0-1725551477846.png

Any idea how to achieve a symbol placement via mapkey ? Thanks.

 

I'm not really an expert with mapkeys. I usually just record via Creo my inputs.

ACCEPTED SOLUTION

Accepted Solutions
RaphMORIN
14-Alexandrite
(To:RaphMORIN)

Hi,

Found a solution. I read this topic : Mapkey Tips and discovered we could use the content of trail files to write macros. I modified the macro this way and it now works.

mapkey ca4 @MAPKEY_NAMEInsertion d'un cartouche sur format A4 horizontal;\
mapkey(continued) @MAPKEY_LABELInsertion cartouche A4;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdDwgCrSymInstCust` ;\
mapkey(continued) ~ Select `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Close `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Command `ProCmdPmaOptSymLib`  `PRO_SYMBOL_DIR/cartouche_gravlor.sym`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 \
mapkey(continued) 39712;\
mapkey(continued) ~ Move `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 39722;\
mapkey(continued) ~ Timer `` `` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ RButtonDisarm `main_dlg_cur` `proe_win` 9 1277 670 0 256 1716 811 1920 \
mapkey(continued) 1080 40165;\
mapkey(continued) ~ Exit `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 40166;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Activate `rmb_popup` `Absolute Coordinates`;\
mapkey(continued) ~ Input `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ Update `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ FocusIn `coordinputs` `YInputPanel`;\
mapkey(continued) ~ Input `coordinputs` `YInputPanel` `8`;\
mapkey(continued) ~ Update `coordinputs` `YInputPanel` `8`;~ Activate `coordinputs` `psh_ok`;

View solution in original post

1 REPLY 1
RaphMORIN
14-Alexandrite
(To:RaphMORIN)

Hi,

Found a solution. I read this topic : Mapkey Tips and discovered we could use the content of trail files to write macros. I modified the macro this way and it now works.

mapkey ca4 @MAPKEY_NAMEInsertion d'un cartouche sur format A4 horizontal;\
mapkey(continued) @MAPKEY_LABELInsertion cartouche A4;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_Annotate_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdDwgCrSymInstCust` ;\
mapkey(continued) ~ Select `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Close `main_dlg_cur` `Symbol:casc343974600`;\
mapkey(continued) ~ Command `ProCmdPmaOptSymLib`  `PRO_SYMBOL_DIR/cartouche_gravlor.sym`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 \
mapkey(continued) 39712;\
mapkey(continued) ~ Move `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 39722;\
mapkey(continued) ~ Timer `` `` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ RButtonDisarm `main_dlg_cur` `proe_win` 9 1277 670 0 256 1716 811 1920 \
mapkey(continued) 1080 40165;\
mapkey(continued) ~ Exit `main_dlg_cur` `proe_win` 9 1277 670 0 4 1716 811 1920 1080 40166;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Activate `rmb_popup` `Absolute Coordinates`;\
mapkey(continued) ~ Input `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ Update `coordinputs` `XInputPanel` `289`;\
mapkey(continued) ~ FocusIn `coordinputs` `YInputPanel`;\
mapkey(continued) ~ Input `coordinputs` `YInputPanel` `8`;\
mapkey(continued) ~ Update `coordinputs` `YInputPanel` `8`;~ Activate `coordinputs` `psh_ok`;
Announcements


Top Tags