Question:

Is it possible to map keys on the keyboard to ANSYS commands to create shortcuts for frequently used commands? I saw something about this previously in #192501.

Answer:

The procedure has been simplified in recent revisions and you don't need those files. What you need to do is:

1. Create the ANSYS**.KBD file, where ** refers to the ANSYS release. To create the file, add the following command to your start**.ans file for one run only.
KEYW,KEYBBETA,1
Start ANSYS and immediately exit from the program. Remove the above command from the start.ans file or delete the start.ans file.
2. Edit the ANSYS**.KBD file to meet your particular needs.
The demonstration file created in 1 shows how to run various types of ANSYS commands from the keyboard with shortcuts. To see how to do this, add the following command to the file
bind AnsysGUI <F2> [list catch {ans_sendcommand torrus }]
where torrus is a macro file to create a torrus.
3. Use the ANSYS**.KBD file. Start ANSYS. Press the F2 key and watch the results.

DO NOT USE THE anskbd.mac TO CREATE THE ANSYS**.KBD FILE AT 8.0.

Attached to this solution is a sample keyboard file that was created and the torrus macro file.


Question:

Is it possible to map keys on the keyboard to ANSYS commands to create shortcuts for frequently used commands? I saw something about this previously in #192501.

Answer:

The procedure has been simplified in recent revisions and you don't need those files. What you need to do is:

1. Create the ANSYS**.KBD file, where ** refers to the ANSYS release. To create the file, add the following command to your start**.ans file for one run only.
KEYW,KEYBBETA,1
Start ANSYS and immediately exit from the program. Remove the above command from the start.ans file or delete the start.ans file.
2. Edit the ANSYS**.KBD file to meet your particular needs.
The demonstration file created in 1 shows how to run various types of ANSYS commands from the keyboard with shortcuts. To see how to do this, add the following command to the file
bind AnsysGUI <F2> [list catch {ans_sendcommand torrus }]
where torrus is a macro file to create a torrus.
3. Use the ANSYS**.KBD file. Start ANSYS. Press the F2 key and watch the results.

DO NOT USE THE anskbd.mac TO CREATE THE ANSYS**.KBD FILE AT 8.0.

Attached to this solution is a sample keyboard file that was created and the torrus macro file.





Show Form
No comments yet. Be the first to add a comment!