Skip to main content
tbraxton
22-Sapphire II
22-Sapphire II
July 11, 2019
Question

Manual edit of mapkeys to avoid invoking GUI

  • July 11, 2019
  • 2 replies
  • 1522 views

Since the config option to run mapkeys without graphics has been rendered useless by the GUI interface changes I need to determine some rules for editing mapkeys to not invoke the GUI when they run. Does anyone have any insight into how to do this without trial and error of every line recorded when creating mapkeys?

I have cmdmgr_trail_ouput yes configured.

 

Here is one example of a mapkey that imports a config.pro file to control datum display but when it runs it is of course opening the GUI. I don't want any GUI objects invoked when running this.

 

mapkey eio @MAPKEY_NAMEDTM Display ON;@MAPKEY_LABELDTM Display ON;\
mapkey(continued) ~ Key `main_dlg_cur` `proe_win` 9 1085 766 71696486 0 1451 863 1920 1200 \
mapkey(continued) 378604 `Alt+F`;~ Select `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdRibbonOptionsDlg` ;\
mapkey(continued) ~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\
mapkey(continued) ~ Select `ribbon_options_dialog` `ConfigLayout.ImportExportBtn`;\
mapkey(continued) ~ Close `ribbon_options_dialog` `ConfigLayout.ImportExportBtn`;\
mapkey(continued) ~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `dtm_on_config.pro`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `dtm_on_config.pro`;\
mapkey(continued) ~ Activate `ribbon_options_dialog` `OkPshBtn`;

2 replies

21-Topaz I
July 11, 2019

By "invoking GUI" you mean you don't want the dialog boxes to appear? If so then your only choice is to use one of the APIs

 

In the mean time you can up vote this idea:

https://community.ptc.com/t5/Creo-Parametric-Ideas/Add-config-option-to-stop-screen-updates-when-running-a-mapkey/idi-p/455401

12-Amethyst
July 19, 2019

This is what I use for turning csys on/off;

!THIS MAPKEY TOGGLES THE CSYS DISPLAY
mapkey dc @MAPKEY_NAMEDISPLAY CSYS;@MAPKEY_LABELDISPLAY CSYS;\
mapkey(continued) ~ Command `ProCmdEnvCsysDisp`  1;

You can replace it with "Command `ProCmdEnvDtmDisp`  0;"