Monthly Archives: May 2014

DesignScript Curve Translation, Geometry.Curve.SweepAsSurface#44– Code to Node to Code

Hi Everyone:

This is the forty-fourth, in a series of forty-nine curve file translations. The file Geometry.Curve.SweepAsSurface.ds is the second of two Curve-Sweep file types located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.SweepAsSurface.ds#44

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

Geometry.Curve.SweepAsSurface#44

Geometry.Curve.SweepAsSurface#44

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

Geometry.Curve.SweepAsSurface#44a

Geometry.Curve.SweepAsSurface#44a

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.SweepAsSurface#44b

Geometry.Curve.SweepAsSurface#44b

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.SweepAsSurface-Graphic Window

Geometry.Curve.SweepAsSurface-Graphic Window

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

Geometry.Curve.SweepAsSurface#44

Geometry.Curve.SweepAsSurface#44a

Geometry.Curve.SweepAsSurface%2344b

Thanks for looking.

T!M

 

 

 

DesignScript Curve Translation, Geometry.Curve.SweepAsSolid#43– Code to Node to Code

Hi Everyone:

This is the forty-third, in a series of forty-nine curve file translations. The file Geometry.Curve.SweepAsSolid.ds is the first of two Curve-Sweep file types located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.SweepAsSolid.ds#43

Geometry.Curve.SweepAsSolid.ds#43

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

Geometry.Curve.SweepAsSolid#43

Geometry.Curve.SweepAsSolid#43

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

Geometry.Curve.SweepAsSolid#43a

Geometry.Curve.SweepAsSolid#43a

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.SweepAsSolid#43b

Geometry.Curve.SweepAsSolid#43b

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.SweepAsSolid-Windows Graphic

Geometry.Curve.SweepAsSolid-Windows Graphic

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

Geometry.Curve.SweepAsSolid#43

Geometry.Curve.SweepAsSolid#43a

Geometry.Curve.SweepAsSolid#43b

Thanks for looking.

T!M

 

 

 

DesignScript Curve Translation, Geometry.Curve.Split#42– Code to Node to Code

Hi Everyone:

This is the forty-second, in a series of forty-nine curve file translations. The file Geometry.Curve.Split.ds is located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.Split#42

Geometry.Curve.Split#42

Unfortunately, this DesignScript file doesn’t function. At first blush, it would seem to be a simple spelling mistake, when opening the file in the DS Editor.

Geometry.Curve.Split.ds-spell error

Geometry.Curve.Split.ds-spell error

But after correcting the spelling and running Geometry.Curve.Split.ds, we still get the error.

Geometry.Curve.Split.ds

Geometry.Curve.Split.ds

Taking the script for “Split” to DSS, pasting it into the canvas and doing the essential translation yields the same result.

Geometry.Curve.Split#42

Geometry.Curve.Split#42

The error information is generated when extracting the properties from the “Split” node.

Geometry.Curve.Split#42-error

Geometry.Curve.Split#42-error

Checking to see if the input parameters are being returned we get.

Geometry.Curve.Split#42-error

Geometry.Curve.Split#42-error

The geometry that’s being generated shows the curve with the parameter points on the curve.

Geometry.Curve.Split#42-error

Geometry.Curve.Split#42-error

It would be great if a Autodesk programmer/architect could look into this and create a resolution. (or for that matter anyone else:)

The files, for what they are, are linked to Drop-Box for downloading below.

Geometry.Curve.Split#42

Geometry.Curve.Split#42a

Geometry.Curve.Split#42-testSplit

Thanks for looking.

T!M

 

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

 

 

DesignScript Curve Translation, Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39– Code to Node to Code

Hi Everyone:

This is the thirty-ninth, in a series of forty-nine curve file translations. The file Geometry.Curve.RevolveAsSurface.Axis.SweepAngle.ds is the sixth of eight Curve-Revolve file types and among those eight, the second of four Curve-Revolve-As-Surface files located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle.ds#39

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle.ds#39

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.Axis.SweepAngle#39

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39

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

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39a

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39a

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.Axis.SweepAngle#39b

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39b

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.Axis.SweepAngle-Graphic Window

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle-Graphic Window

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

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39a

Geometry.Curve.RevolveAsSurface.Axis.SweepAngle#39b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.RevolveAsSurface.Axis#38– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.RevolveAsSurface.Axis.ds#38

Geometry.Curve.RevolveAsSurface.Axis.ds#38

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

Geometry.Curve.RevolveAsSurface.Axis#38

Geometry.Curve.RevolveAsSurface.Axis#38

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

Geometry.Curve.RevolveAsSurface.Axis#38a

Geometry.Curve.RevolveAsSurface.Axis#38a

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.Axis#38b

Geometry.Curve.RevolveAsSurface.Axis#38b

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.Axis#38-Graphic Window

Geometry.Curve.RevolveAsSurface.Axis#38-Graphic Window

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

Geometry.Curve.RevolveAsSurface.Axis#38

Geometry.Curve.RevolveAsSurface.Axis#38a

Geometry.Curve.RevolveAsSurface.Axis#38b

Thanks for looking.

T!M

 

DesignScript Curve Translation, Geometry.Curve.RevolveAsSolid.StartSweep#37– Code to Node to Code

Hi Everyone:

This is the thirty-seventh, in a series of forty-nine curve file translations. The file Geometry.Curve.RevolveAsSolid.StartSweep.ds is the fourth of eight Curve-Revolve file types and among those eight, the last of four Curve-Revolve-As-Solid files located in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.RevolveAsSolid.StartSweep.ds#37

Geometry.Curve.RevolveAsSolid.StartSweep.ds#37

Open the DS Editor and copy the script generated from Geometry.Curve.RevolveAsSolid.ProfileAxis.ds. Open DS Studio, and paste the DSE script into a blank canvas.

Geometry.Curve.RevolveAsSolid.StartSweep#37

Geometry.Curve.RevolveAsSolid.StartSweep#37

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

Geometry.Curve.RevolveAsSolid.StartSweep#37-a

Geometry.Curve.RevolveAsSolid.StartSweep#37-a

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.RevolveAsSolid.StartSweep#37b

Geometry.Curve.RevolveAsSolid.StartSweep#37b

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.RevolveAsSolid.StartSweep#37-Graphic Window

Geometry.Curve.RevolveAsSolid.StartSweep#37-Graphic Window

The files are available to download from the Drop-Box links below.

Geometry.Curve.RevolveAsSolid.StartSweep#37

Geometry.Curve.RevolveAsSolid.StartSweep#37a

Geometry.Curve.RevolveAsSolid.StartSweep#37b

Thank 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

 

 

DesignScript Curve Translation, Geometry.Curve.RevolveAsSolid.ProfileAxis#36– Code to Node to Code

Hi Everyone: This is the thirty-sixth, in a series of forty-nine curve file translations. The file Geometry.Curve.RevolveAsSolid.ProfileAxis.ds is the third of eight Curve-Revolve file types and among those eight, the third of four Curve-Revolve-As-Solid files located in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.RevolveAsSolid.ProfileAxis.ds

Geometry.Curve.RevolveAsSolid.ProfileAxis.ds

Open the DS Editor and copy the script generated from Geometry.Curve.RevolveAsSolid.ProfileAxis.ds. There is a slight discrepancy in this DS file from the Editor.

Geometry.Curve.RevolveAsSolid.ProfileAxis.ds#36-error

Geometry.Curve.RevolveAsSolid.ProfileAxis.ds#36-error

The highlighted start angle and sweep angle are not required in the RevolveAsSolid.ProfileAxis.ds node. This is a slight error which is more of a house keeping issue, but nonetheless an error. Onwards, run DS Studio, and paste the DSE script into the canvas.

Curve.RevolveAsSolid.ProfileAxis.ds

Curve.RevolveAsSolid.ProfileAxis.ds

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

Geometry.Curve.RevolveAsSolid.ProfileAxis-36a

Geometry.Curve.RevolveAsSolid.ProfileAxis-36a

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.RevolveAsSolid.ProfileAxis-36b

Geometry.Curve.RevolveAsSolid.ProfileAxis-36b

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.RevolveAsSolid.ProfileAxis-Windows Graphic

Geometry.Curve.RevolveAsSolid.ProfileAxis-Windows Graphic

The files are available to download from the Drop-Box links below. Geometry.Curve.RevolveAsSolid.ProfileAxis#36 Geometry.Curve.RevolveAsSolid.ProfileAxis#36a Geometry.Curve.RevolveAsSolid.ProfileAxis#36b Thanks for looking. T!M