Chapter 1 Introduction to Command Scripting

Introduction to Commandscripting in Rhinoceros

One of the most powerful features in Rhinoceros is command scripting. Rhinoceros features command scripting capabilities that let you automate modeling tasks and create new commands and icons to perform customized functions. Commandscripts can even build a whole model for you, based on different kinds of imported data or scripted procedures. You don't have to be a programmer or expert user to write command scripts in Rhinoceros.

A Commandscript or Macro is a series of Rhinoceros commands listed together in a text file so that they can be executed automatically in succession. This chapter will show you the different ways to run a Commandscript, the proper way to format Commandscripts, and get you started creating your own scripts.

If you never created commandscripts before or are new to Rhinoceros please go through Chapter1 in a linear fashion. I suggest this because each mini tutorial builds upon the one precedeing it. The tutorials are arranged in a step by step learning process that you should not skip if you want to gain a thorough understanding of the basics.

The three ways to run a commandscript in Rhinoceros

Commandscripting Syntax and protocol for running a commandscript

Customizing Rhinoceros with Commandscripts

Command scripts that control the "Appearance" of Rhinoceros

Adding links to programs outside of Rhinoceros
**Adding one important program to Rhinoceros** You must make a link to the standard Windows Notepad to follow the rest of the tutorials even if you haven't created any commandscripts yet.

Assigning an often used commandscript to a Rhinoceros alias
 **Important** you must create the command Lastcreated as a Rhinoceros alias for the following chapter and for the rest of the command scripts to run.

Commandscripts that add extra Solids to the Solid toolbar

Concluding remarks for chapter one