#DesignScript -Geometry.ExportToSat#1 – Code to Node to Code

Hi Everyone:

This is the first of six DesignScript translations, from the geometry category of the DS Editor (DSE) Samples

Geometry.ExportToSat-ds#1-

Geometry.ExportToSat-ds#1-

Open the file Geometry.ExportToSat.ds in the DS Editor and run it. The script is shown below.

Geometry.ExportToSat.ds#1

Geometry.ExportToSat.ds#1

 

Now open DS Studio, copy & paste the DSE script, Geometry.ExportToSat.ds into a blank canvas.

Geometry.ExportToSat#a1

Geometry.ExportToSat#a1

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

Geometry.ExportToSat#a1-edited

Geometry.ExportToSat#a1-edited

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

Geometry.ExportToSat#1

Geometry.ExportToSat#1

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

Geometry.ExportToSat#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.ExportToSat#1b

Geometry.ExportToSat#1b

The “Node to Code” operation as shown above. A little editing is desired.

Geometry.ExportToSat#1b-edited

Geometry.ExportToSat#1b-edited

The file should now  be exported to the  root directory where ones sample files reside. The Geometry that is generated from the operation is shown below.

Geometry.ExportToSat#1a Graphic Window

Geometry.ExportToSat#1a Graphic Window

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.ExportToSat#a1

Geometry.ExportToSat#1

Geometry.ExportToSat#1a

Geometry.ExportToSat#1b

Thanks for looking.

T!M

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s