Commandscripts that add extra Solids to the Solid toolbar

Even though Rhinoceros ships with a great set of solids. You may find that it is lacking some, or that you may want to make your own solids designed to fit your needs. This is easy to do the following examples show you how.

Adding a Golden rectangle box.

1. Drag the Solid toolbar into the Rhinoceros workspace.
2. Duplicate the Box icon from the box toolbar and drag /move it to the Solid toolbar.

3. In the Left button command box type:
! Box
w0
w16.18034,10
10
enter
4. In the tooltips write :
Golden Box

5. Click the Golden Box icon to create a golden section box.

6.  Select all and delete the contents leaving the drawing free of objects for the next mini tutorial.

 

Adding a tetrahedron to the Rhinoceros solids toolbox.

Open the Windows Notepad and then open the file tetrahedron1.txt from the secrets of Rhinoceros CD.The commanscript is also located below you can copy and paste it from there too.

1. Copy the entire contents of the file to the Windows clipboard.
2. In Rhinoceros drag the Solid tool bar out into the workspace.
3. Edit the Golden box icon.
4. In the Right Button box paste the tetrahedron1.txt file or copy and paste it from the command script below.
5. In the Tooltips box write Tetrahedron.
6. Click Ok

7. Right mouse click Golden Box | Tetrahedron icon.

8.  Select all and delete the contents leaving the drawing free of objects for the next mini tutorial.

 
Tetrahedron Commandscript
! Polyline
0
10,0,0
10<60
0
enter
! Polyline
0
10,0,0
5,2.88675,8.16497
0
enter
! Polyline
10,0,0
5,2.88675,8.16497
10<60
10,0,0
enter
! Polyline
0
10<60
5,2.88675,8.16497
0
Enter
! Selcurves
! PlanarSrf
! Selcurves
! delete
all
Joinfaces
enter