To Define a Mapkey
1. Click File > Options > Environment > Mapkeys Settings. The Mapkeys dialog box opens.
2. Click New. The Record Mapkey dialog box opens.
3. Type the key sequence that is to be used to execute the mapkey in the Key sequence text box.
To use a function key, precede its name with a dollar sign ($). For example, to map to F3, type $F3.
4. Optional: Type the name and description of the mapkey in the appropriate text boxes.
5. Click the Creo Parametric tab. Specify how the system must handle the prompts when running the mapkey by selecting one of the following options:
Record keyboard input—(default). Record the keyboard input when defining the mapkey and use it when running the macro.
Accept system defaults—Accept the system defaults when running the macro.
Pause for keyboard input—Pause for keyboard input in the message area in response to a prompt while running the macro.
The Pause for keyboard input option waits for you to enter a value wherever an user input is required while recording the macro.
6. Click Record and start recording the macro by selecting menu commands in the appropriate order.
7. If you create a new mapkey that contains actions that open and make selections from dialog boxes, when you run the mapkey, Creo Parametric does not pause for user input whenever the dialog box opens. To pause for user input into dialog boxes, click Pause in the Record Mapkey dialog box to indicate when to pause while recording the mapkey. The Resume Prompt dialog box opens.
8. Type the prompt in the Resume Prompt dialog box. Then click Resume and proceed recording the mapkey.
9. Click Stop when finished recording the macro.
When you run the macro, the system pauses, displays the prompt you typed, and gives you the options to Resume recording the macro or to Cancel.
The OS Script tab allows you to run an Operating System (OS) script through Creo Parametric using a mapkey. This is beneficial because you can start this OS script without having to minimize your window or to place it in the background.
An example of an OS script is one that copies a configuration file that is commonly used from a directory on the hard disk to the working directory so that you can load the file into your session.