This task starts a mapkey.
The cross-task settings can be found in the chapter General task settings.
Model filter
This task can revise the following models: Parts, Assemblies and Drawings
The task-specific settings are:

1.Mapkey
Enter or insert the mapkey. Note the following:
–Mapkeys can only be executed on the open main model, not within groups that open another model in Creo.
–You can use all Variables in the mapkey.
Warning: If variable characters are used in a map key, they must be escaped: `@` must become `@@` and `%` must become `%%` so that the characters are not replaced, e.g., @mdln@ must be replaced by “@@mdln@@”. |
–To address a mapkey, it must be addressed as follows: %%MAPKEYNAME;
Please note: When using paths, a mapkey requires four backslashes. The individual backslashes must therefore be replaced by four backslashes. This happens particularly frequently when using environment variables, e.g. $$repl$\$\\\\$§TEMP§$$ - Replaces the backslashes in a mapkey-compatible manner when using the environment variable Temp. |
To search the text box, right-click to open the context menu and click Search. Alternatively, you can use the keyboard shortcut Ctrl + F.
2.Reformat
This function is activated as soon as there is an entry under Mapkey (1). Reformatting optimizes the mapkey by removing superfluous code components and applying formatting rules to the mapkey.
3.Run
Select the runtime of the mapkey:
–Only once
–Per sheet
–Per instance
–Per view
–Per selection
Filling out open/save dialogues automatically
Using Mapkeys to open and save dialog boxes results in error messages in Creo. You can work around these error messages by adding an extra line of code:
@mdln@;
Example
This Mapkey is used to export the current DTL file:
`` html
~ Close `main_dlg_cur` `appl_casc`;
~ Command `ProCmdDwgProperties` ;
~ Activate `mdlprops_dlg` `OPTIONS_lay_Controls.push_Change.lay_instance`;
~ FocusOut `preferences` `InputOpt`;
~ Activate `preferences` `SaveAs`;
~ Trail `` `` `DLG_PREVIEW_POST` `file_open`;
~ Input `file_open` `Inputname` `a`;
~ Update `file_open` `Inputname` `a`;
~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;
@mdln@;
~ Activate `preferences` `Close`;
~ Activate `mdlprops_dlg` `DlgClose_push`;
```ctivate `file_saveas` `OK`;