Hi Everyone:

This is the second translation in a series of three from the twenty-fifth chapter of the **D**esign**S**cript **L**anguage **M**anual and can be found at **DSLM ***(pages 74-75) *and is entitled*; Geometric Booleans. *There is a companion video tutorial on the **DS **website’s tutorials, Boolean Operations on Geometry (18). This will be the first in a series of three translations.

This manual translation was initially made on the Autodesk DesignScript Community Forum and DesignScript.org. Now it can be found at can be found at Chapter 25: Geometric Booleans Part 2*. *(Note that it can be not longer be found on the Autodesk Labs Website, as linked)

Copy and paste the script from* (page 74)* the **D**esign **S**cript **L**anguage **M**anual into the **D**esign**S**cript **E**ditor. Below shows the script in the **DS** **E**ditor with the results of the code being run, and the window graphics inserted alongside for reference.

Chp_ 25_ Geometric Booleans_ds#2

Now open **D**esign**S**cript **S**tudio and paste this same script into the canvas.

Chp_ 25_ Geometric Booleans#a2

There is a little editing desired as high lighted above with the results shown below.

Chp_ 25_ Geometric Booleans#a2-edited

The initial **DSS** translation is shown below.

Chp_ 25_ Geometric Booleans-2

The Difference node that is obtained from the originating graph node* [Sphere (s)]* on-board context sensitive menu is shown below.

Chp_ 25_ Geometric Booleans_difference

Continuing on with the more detailed and defined translation with the renaming of the variables, identifying and referencing them with their corresponding nodes.

Chp_ 25_ Geometric Booleans-2a

As a reminder, selecting the graphic window one can get an enlarged view of each snapshot. Continuing on to the “**Node to Code**” operation.

2015-04-15-Chp_ 25_ Geometric Booleans#2b

A little editing is desired.

2015-04-15-Chp_ 25_ Geometric Booleans#2b-edited

The Graphic Window(s) that result from the script is shown below.

Chp_ 25_ Geometric Booleans-2a-Graphic Windows_1

The other “**Difference**” mentioned in the manual was a Cube & a Sphere and it is shown below.

Chp_ 25_ Geometric Booleans-2a-Graphic Windows_2

Reiterating, this was done on the stand-alone version of **D**esign**S**cript, rather than as a plugin for Autocad. The files are available for downloading from the **Drop-Box** links below.

2015-04-15-Chp- 25_ Geometric Booleans_ds#2

2015-04-16-Chp_ 15_ Geometric Booleans#a2

2014-03-25-Chp_ 25_ Geometric Booleans#2-spheres

2014-03-25-Chp_ 25_ Geometric Booleans#2a_spheres

2015-04-25-Chp_ 15_ Geometric Booleans#2b

2014-03-25-Chp_ 25_ Geometric Booleans#2a_cube

Thanks for looking.

T!M

### Like this:

Like Loading...