|
Chapter 1 |
Command Scripting |

Running Commandscripts
There are three different ways to run a commandscript in Rhinoceros.
By working through the three examples in this chapter, you will
gain a good understanding of their differences.
- The first way tp run a commandscript is by assigning correctly
formatted text to a mouse button or hotkey. For commands that
you use all the time, running Commandscripts from Icons or hotkeys
can be ideal. However, you might not want a huge, rarely used
macro assigned to a mouse button of an icon, or taking away precious
hotkey space.
- The second way is by typing commandpaste or clicking
the commandpaste Icon in the Tools toolbox. For Commandpaste
to work you need to have correctly formatted text copied to the
Windows clipboard first. Command paste is mainly used to test
commandscripts. It can also be used to execute quick one-time
macros you create on the fly or you don't want to save.
- The third is the Rhinoceros command Runcommandscript.
Runcommandscript is used to execute commandscripts from a saved
text file. You first have to write the macro in a text editor.
You then save it as a .txt file and then execute it in Rhinoceros.
These commandscripts should be fully tested and free from errors.
You should store your commandscripts in a separate distinct folder.
You can share the fully tested ones with others and combine them
to make other commandscripts.
Click on the following three examples to take you step by step
through the three different ways to run a commandscript in Rhinoceros.
Example 1
Assigning correctly formatted
text to a mouse button or hotkey |
Example 2
Using the
"Commandpaste" command |
Example 3
Using the
"Runcommandscript" command |