Category Archives: DSLM Translations

Translations of the DesignScript Language Manual, originally posted on the Autodesk DesignScript Community forum and DesignScript.org websites.

DesignScript Curve Translation, Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle#41– Code to Node to Code

Hi Everyone:

This is the forty-first, in a series of forty-nine curve file translations. The file Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle.ds is the last of eight Curve-Revolve file types and also among those eight, the last of four Curve-Revolve-As-Surface files located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle.d#41

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle.d#41

Open the DS Editor and copy the script generated from Geometry.Curve.RevolveAsSurface.Axis.SweepAngle. Open DS Studio, and paste the DSE script into a blank canvas.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngles#41

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngles#41

The preliminary translation looks like the canvas shown above and the developed one below.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_41a-graphic

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_41a-graphic

The red and yellow highlighted areas indicate the groupings of nodes according to their properties. Once satisfied that the translation is complete the “Node to Code” operation can take place.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_41b

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_41b

The script that results from the operation doesn’t require further editing. The geometry that results from the codes(s) is shown below.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_Graphic Window

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle_Graphic Window

The files are available to download from the DropBox links below.

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle#41

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle#41a

Geometry.Curve.RevolveAsSurface.AxisPointDirectionSweepAngle#41b

Thanks for looking.

T!M

 

 

 

 

DesignScript Curve Translation, Geometry.Curve.RevolveAsSurface.AxisPointDirection#40– Code to Node to Code

Hi Everyone:

This is the fortieth, in a series of forty-nine curve file translations. The file Geometry.Curve.RevolveAsSurface.AxisPointDirection.ds is the seventh of eight Curve-Revolve file types and among those eight, the third of four Curve-Revolve-As-Surface files located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.RevolveAsSurface.AxisPointDirection.ds#40

Geometry.Curve.RevolveAsSurface.AxisPointDirection.ds#40

Open the DS Editor and copy the script generated from Geometry.Curve.RevolveAsSurface.Axis.SweepAngle. Open DS Studio, and paste the DSE script into a blank canvas.

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40

The preliminary translation looks like the canvas shown above and the developed one below.

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40a

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40a

The red and yellow highlighted areas indicate the groupings of nodes according to their properties. Once satisfied that the translation is complete the “Node to Code” operation can take place.

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40b

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40b

The script that results from the operation doesn’t require further editing. The geometry that results from the codes(s) is shown below.

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40-windows Graphic

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40-windows Graphic

The files are available to download from the DropBox links below.

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40a

Geometry.Curve.RevolveAsSurface.AxisPointDirection#40b

Thanks for looking.

T!M

 

 

DSLM-Chapter Nine Translation-Numbers Types

Hi Everyone:

Here is a DesignScript update to the posting on Chapter 9 of the DSLM-Number Types, which was initially posted over on the Autodesk DesignScript Community Forum and entitled Code to Node, Translation on Numbers, Chapter 9.

The initial translation is duplicated below.

Chapter_9-Number Types

Chapter_9-Number Types

The DesignScript translation has been refined with more detail regarding naming of the nodes and adding a breakdown of the graph for clarity.

Chapter_9-Number Types_a

Chapter_9-Number Types_a

The above DS node graph in turn was translated back into code using the “Node to Code” operation as shown below.

Chapter_9-Number Types_b

Chapter_9-Number Types_b

As highlighted in the translation back to code, quite a bit of editing is desired to eliminate the Variable numbers, and or replacing them, as they prove to be unnecessary to the codes operation.

Chapter_9-Number Types_b-edited

Chapter_9-Number Types_b-edited

The editing was done, and the highlighted translations layout shown above, is similar to the DSS node-Graph layout and was done for instructional value.

While there isn’t a graphic for the DS graphic window, what has been done here is to take the original script from Chapter 9, Number Types, and get the text of the code to be printed in DSS Graph Window, echoing the DS Editor.

Chapter_9-Number Types-Graphic Window

Chapter_9-Number Types-Graphic Window

For those that are interested on how this was done, a “over the top” DSS canvas is shown below.

Chapter9-NumbersForStudio-3

Chapter9-NumbersForStudio-3

Attempts will be made to get this unwieldy DSS text operation a little more manageable. We shall see.

The DSS files, including the “text” one are available for downloading via DropBox links below.

Chapter_9-Number#Types

Chapter_9-Number#Types_a

Chapter_9-Number#Types_b-edited

Chapter9-NumbersForStudio

Thanks for looking.

T!M