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

Manual edit of mapkeys to avoid invoking GUI

Highlighted
Amethyst

Manual edit of mapkeys to avoid invoking GUI

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`;

Tags (2)
2 REPLIES 2

Re: Manual edit of mapkeys to avoid invoking GUI

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-run...

Re: Manual edit of mapkeys to avoid invoking GUI

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;"