Monthly Archives: July 2014

DesignScript Curve Translation,Geometry.Solid.Cylinder.ByRadiusHeight#1- Code to Node to Code

Hi Everyone:

This is a one of one file translation entitled Solid Cylinder . The file Geometry.Solid.Cylinder.ByRadiusHeight.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Solid.Cylinder.ByRadiusHeight.ds#1

Geometry.Solid.Cylinder.ByRadiusHeight.ds#1

Open the file Geometry.Solid.Cylinder.ByRadiusHeight.ds in the DS Editor, the resulting script is shown below.

Geometry.Solid.Cylinder.ByRadiusHeight-ds#1

Geometry.Solid.Cylinder.ByRadiusHeight-ds#1

There are a few errors that are being highlighted, again most likely caused by copying and pasting. Rather than “Create Cuboid“, it should be a Cylinder. The slight spelling error should read base and for StartPoint and StartRadius, substitute Radius and Height.

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

Geometry.Solid.Cylinder.By RadiusHeight#a1

Geometry.Solid.Cylinder.By RadiusHeight#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” script as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Solid.Cylinder.By RadiusHeight#1

Geometry.Solid.Cylinder.By RadiusHeight#1

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

Geometry.Solid.Cylinder.By RadiusHeight#1a

Geometry.Solid.Cylinder.By RadiusHeight#1a

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.Solid.Cylinder.By RadiusHeight#1b

Geometry.Solid.Cylinder.By RadiusHeight#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Solid.Cylinder.By RadiusHeight#1a-Windows Graphic

Geometry.Solid.Cylinder.By RadiusHeight#1a-Windows Graphic

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

Geometry.Solid.Cylinder.ByRadiusHeight#1

Geometry.Solid.Cylinder.ByRadiusHeight#a1

Geometry.Solid.Cylinder.ByRadiusHeight#1a

Geometry.Solid.Cylinder.ByRadiusHeight#1b

Thanks for looking.

T!M

Advertisements

DesignScript Curve Translation,Geometry.Solid.Cuboid.ByLengthWidthHeight#1- Code to Node to Code

Hi Everyone:

This is a one of one Solid Cuboid file translation. The file  Geometry.Solid.Cuboid.ByLengthWidthHeight.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Solid.Cuboid.ByLengthWidthHeight.ds#1

Geometry.Solid.Cuboid.ByLengthWidthHeight.ds#1

Open the file Geometry.Solid.Cuboid.ByLengthWidthHeight.ds in the DS Editor, the resulting script is shown below.

Geometry.Solid.Cuboid.ByLengthWidthHeight-ds#1

Geometry.Solid.Cuboid.ByLengthWidthHeight-ds#1

There is a slight spelling error that is being pointed out as highlighted above as well as some properties confusion. The Cuboid is requiring the “Width, Height and Length” in the property definition as opposed to “StartPoint, StartRadius and EndRadius.” ( A consequence of copying and pasting one would assume).

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

Geometry.Solid.Cuboid.ByLengthWidthHeight#a1

Geometry.Solid.Cuboid.ByLengthWidthHeight#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” script as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1

Geometry.Solid.Cuboid.ByLengthWidthHeight#1

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

Geometry.Solid.Cuboid.ByLengthWidthHeight#1a

Geometry.Solid.Cuboid.ByLengthWidthHeight#1a

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.Solid.Cuboid.ByLengthWidthHeight#1b

Geometry.Solid.Cuboid.ByLengthWidthHeight#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1-Graphic Window

Geometry.Solid.Cuboid.ByLengthWidthHeight#1-Graphic Window

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

Geometry.Solid.Cuboid.ByLengthWidthHeight#1

Geometry.Solid.Cuboid.ByLengthWidthHeight#a1

Geometry.Solid.Cuboid.ByLengthWidthHeight#1a

Geometry.Solid.Cuboid.ByLengthWidthHeight#1b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Solid.Cone.ByStartPointEndPointRadius#2 – Code to Node to Code

Hi Everyone:

This is the second of two Solid Cone file translations. The file  Geometry.Solid.Cone.ByStartPointEndPointRadius.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Solid.Cone.ByStartPointEndPointRadius.ds#2

Geometry.Solid.Cone.ByStartPointEndPointRadius.ds#2

Open the file Geometry.Solid.Cone.ByStartPointEndPointRadius.ds in the DS Editor, the resulting script is shown below.

Geometry.Solid.Cone.ByStartPointEndPointRadius-ds#2

Geometry.Solid.Cone.ByStartPointEndPointRadius-ds#2

There is a slight spelling error that is being pointed out as highlighted above. Open DS Studio, and paste the DSE script,Geometry.Solid.Cone.ByStartPointEndPointRadius.ds  into a blank canvas.

Geometry.Solid.Cone.ByStartPointEndPointRadius#a2

Geometry.Solid.Cone.ByStartPointEndPointRadius#a2

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Solid.Cone.ByStartPointEndPointRadius#2

Geometry.Solid.Cone.ByStartPointEndPointRadius#2

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

Geometry.Solid.Cone.ByStartPointEndPointRadius#2a

Geometry.Solid.Cone.ByStartPointEndPointRadius#2a

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.Solid.Cone.ByStartPointEndPointRadius#2b

Geometry.Solid.Cone.ByStartPointEndPointRadius#2b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Solid.Cone.ByStartPointEndPointRadius#2-Graphic Window

Geometry.Solid.Cone.ByStartPointEndPointRadius#2-Graphic Window

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

Geometry.Solid.Cone.ByStartPointEndPointRadius#2

Geometry.Solid.Cone.ByStartPointEndPointRadius#a2

Geometry.Solid.Cone.ByStartPointEndPointRadius#2a

Geometry.Solid.Cone.ByStartPointEndPointRadius#2b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Solid.Cone.ByCenterLineRadius#1 – Code to Node to Code

Hi Everyone:

This is the first of two Solid Cone file translations. The file Geometry.Solid.Cone.ByCenterLineRadius.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Solid.Cone.ByCenterLineRadius.ds#1

Geometry.Solid.Cone.ByCenterLineRadius.ds#1

Open the file Geometry.Solid.Cone.ByCenterLineRadius.ds in the DS Editor, the resulting script is shown below.

Geometry.Solid.Cone.ByCenterLineRadius-ds#1

Geometry.Solid.Cone.ByCenterLineRadius-ds#1

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

Geometry.Solid.Cone.ByCenterlineRadius#a1

Geometry.Solid.Cone.ByCenterlineRadius#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Solid.Cone.ByCenterLineRadius#1

Geometry.Solid.Cone.ByCenterLineRadius#1

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

Geometry.Solid.Cone.ByCenterLineRadius#1a

Geometry.Solid.Cone.ByCenterLineRadius#1a

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.Solid.Cone.ByCenterLineRadius#1b

Geometry.Solid.Cone.ByCenterLineRadius#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Solid.Cone.ByCenterLineRadius#-1a

Geometry.Solid.Cone.ByCenterLineRadius#-1a

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

Geometry.Solid.Cone.ByCenterLineRadius#1

Geometry.Solid.Cone.ByCenterLineRadius#a1

Geometry.Solid.Cone.ByCenterLineRadius#1a

Geometry.Solid.Cone.ByCenterLineRadius#1b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Polygon.Trim#2 – Code to Node to Code

Hi Everyone:

This is the second of two Polygon file translations. The file Geometry.Polygon.Trim.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Polygon.Trim.ds#2

Geometry.Polygon.Trim.ds#2

Open the file Geometry.Polygon.Trim.ds in the DS Editor, the resulting script is shown below.

Geometry.Polygon.Trim-ds#2

Geometry.Polygon.Trim-ds#2

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

Geometry.Polygon.Trim-a2

Geometry.Polygon.Trim-a2

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Polygon.Trim#2

Geometry.Polygon.Trim#2

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

Geometry.Polygon.Trim#2a

Geometry.Polygon.Trim#2a

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.Polygon.Trim2b

Geometry.Polygon.Trim2b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Polygon.Trim-Graphic Window

Geometry.Polygon.Trim-Graphic Window

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

Geometry.Polygon.Trim#2

Geometry.Polygon.Trim#a2

Geometry.Polygon.Trim#2a

Geometry.Polygon.Trim#2b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Polygon.ByVertices#1 – Code to Node to Code

Hi Everyone:

This is the first of two Polygon file translations. The file Geometry.Polygon.ByVertices.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Polygon.ByVertices-ds

Geometry.Polygon.ByVertices-ds

Open the file Geometry.Polygon.ByVertices.ds in the DS Editor, the resulting script is shown below.

Geometry.Polygon.ByVertices_ds

Geometry.Polygon.ByVertices_ds

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

Geometry.Polygon.ByVertices#a1

Geometry.Polygon.ByVertices#a1

After pasting the script and further commenting out the “(import(ProGeometry.dll)” as highlighted above, one can have the option of running it as a Code Block of script, before the translation to Nodes takes place.

Geometry.Polygon.ByVertices#1

Geometry.Polygon.ByVertices#1

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

Geometry.Polygon.ByVertices#1a

Geometry.Polygon.ByVertices#1a

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.Polygon.ByVertices#1b

Geometry.Polygon.ByVertices#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Polygon.ByVertices-Graphic Window

Geometry.Polygon.ByVertices-Graphic Window

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

Geometry.Polygon.ByVertices#1

Geometry.Polygon.ByVertices#1a

Geometry.Polygon.ByVertices#a1

Geometry.Polygon.ByVertices#1b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Point.SortByDistance.SortOrder#24 – Code to Node to Code

Hi Everyone:

This is the last in a series of twenty-four Point file translations. The file Geometry.Point.SortByDistance.SortOrder.ds is located in the DesignScript Editor (DSE) Sample files.

Geometry.Point.SortByDistance.SortOrder.ds#24

Geometry.Point.SortByDistance.SortOrder.ds#24

Open the file Geometry.Point.SortByDistance.SortOrder.ds in the DS Editor, the resulting script is shown below.

Geometry.Point.SortByDistance.SortOrder.ds-#24

Geometry.Point.SortByDistance.SortOrder.ds-#24

Open DS Studio, and paste the DSE script, Geometry.Point.SortByDistance.SortOrder.ds into a blank canvas.

Geometry.Point.SortByDistance.SortOrder#24

Geometry.Point.SortByDistance.SortOrder#24

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

Geometry.Point.SortByDistance.SortOrder#24a

Geometry.Point.SortByDistance.SortOrder#24a

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.Point.SortByDistance.SortOrder#24b

Geometry.Point.SortByDistance.SortOrder#24b

A little bit of editing is desired in the “Node to Code” translation as highlighted.

Geometry.Point.SortByDistance.SortOrder#24b-edited

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Point.SortByDistance.SortOrder#24-Graphic Window

Geometry.Point.SortByDistance.SortOrder#24-Graphic Window

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

Geometry.Point.SortByDistance.SortOrder#24

Geometry.Point.SortByDistance.SortOrder#24a

Geometry.Point.SortByDistance.SortOrder#24b

Thanks for looking.

T!M