This is the first in a series of thirty-two Solid file type translations. The file Geometry.Solid.Difference.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Solid.Difference.ds#1

Open the file Geometry.Solid.Difference.dsin the DS Editor, the resulting script is shown below.

Geometry.Solid.Difference-ds#1

Open DS Studio, and paste the DSE script,Geometry.Solid.Difference.ds into a blank canvas.

Geometry.Solid.Difference#a1

Note the commenting out which must be deleted in order to activate the code.

Geometry.Solid.Difference#a1-edited

Now commenting out the “(import(ProGeometry.dll)” script as highlighted above must be added. It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Solid.Difference#1

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Solid.Difference#1a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Geometry.Solid.Difference#1b

Continuing with the “Node to Code” operation above, no editing was required. The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.