Monthly Archives: June 2014

DesignScript Curve Translation,Geometry.Point.AtDistance.OnCurve#1 – Code to Node to Code

Hi Everyone:

This is the first in a series of twenty-four Point file translations. The file Geometry.Point.AtDistance.OnCurve.ds is located in the DesignScript Editor (DSE) Samples.

Geometry.Point.AtDistance.OnCurve.ds#1

Geometry.Point.AtDistance.OnCurve.ds#1

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

Geometry.Point.AtDistance.OnCurve#1

Geometry.Point.AtDistance.OnCurve#1

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

Geometry.Point.AtDistance.OnCurve#1a

Geometry.Point.AtDistance.OnCurve#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.Point.AtDistance.OnCurve#1b

Geometry.Point.AtDistance.OnCurve#1b

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

Geometry.Point.AtDistance.OnCurve#1-Windows Graphic

Geometry.Point.AtDistance.OnCurve#1-Windows Graphic

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

Geometry.Point.AtDistance.OnCurve#1

Geometry.Point.AtDistance.OnCurve#1a

Geometry.Point.AtDistance.OnCurve#1b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Plane.PlaneAtParameter.OnSurface#6 – Code to Node to Code

Hi Everyone:

This is the sixth and last, in the series of Plane file translations. The file Geometry.Plane.PlaneAtParameter.OnSurface.ds is located in the DesignScript Editor (DSE) Samples.

Geometry.PlaneAtParameter.OnSurface.ds#6a

Geometry.PlaneAtParameter.OnSurface.ds#6a

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

Geometry.Plane.PlaneAtParameter.OnSurface#6

Geometry.Plane.PlaneAtParameter.OnSurface#6

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

Geometry.Plane.PlaneAtParameter.OnSurface#6a

Geometry.Plane.PlaneAtParameter.OnSurface#6a

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.Plane.PlaneAtParameter.OnSurface#6b

Geometry.Plane.PlaneAtParameter.OnSurface#6b

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

Geometry.Plane.PlaneAtParameter.OnSurface-Graphic Window

Geometry.Plane.PlaneAtParameter.OnSurface-Graphic Window

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

Geometry.Plane.PlaneAtParameter.OnSurface

Geometry.Plane.PlaneAtParameter.OnSurface#6a

Geometry.Plane.PlaneAtParameter.OnSurface#6b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Plane.PlaneAtParameter.OnCurve#5 – Code to Node to Code

Hi Everyone:

This is the fifth, in a series of six Plane file translations. The file Geometry.Plane.PlaneAtParameter.OnCurve.ds is located in the DesignScript Editor (DSE) Samples.

Geometry.PlaneAtParameter.OnCurve.ds#5

Geometry.PlaneAtParameter.OnCurve.ds#5

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

Geometry.PlaneAtParameter.OnCurve#5

Geometry.PlaneAtParameter.OnCurve#5

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

Geometry.PlaneAtParameter.OnCurve#5a

Geometry.PlaneAtParameter.OnCurve#5a

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.Plane.PlaneAtParameter.OnCurve#5b

Geometry.Plane.PlaneAtParameter.OnCurve#5b

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

Geometry.PlaneAtParameter.OnCurve-Graphic Window

Geometry.PlaneAtParameter.OnCurve-Graphic Window

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

Geometry.Plane.PlaneAtParameter.OnCurve#5

Geometry.Plane.PlaneAtParameter.OnCurve#5a

Geometry.Plane.PlaneAtParameter.OnCurve#5b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Plane.PlaneAtDistance#4 – Code to Node to Code

Hi Everyone:

This is the fourth, in a series of six Plane file translations. The file Geometry.Plane.PlaneAtDistance.ds is located in the DesignScript Editor (DSE) Samples.

2013_12_25Geometry.PlaneAtDistance.ds#4

Open the DS Editor and copy the script generated fromGeometry.Plane.PlaneAtDistance.ds.Open DS Studio, and paste the DSE script into a blank canvas.

Geometry.PlaneAtDistance#4

Geometry.PlaneAtDistance#4

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

Geometry.PlaneAtDistance#4a

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.PlaneAtDistance#4b

Geometry.PlaneAtDistance#4b

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

Geometry.Plane.PlaneAtDistance-Graphic Window

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

Geometry.PlaneAtDistance#4

Geometry.PlaneAtDistance#4a

Geometry.PlaneAtDistance#4b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Plane.Method.Offset#3-Code to Node to Code

Hi Everyone:

This is the third, in a series of six Plane file translations. The file Geometry.Plane.Method.Offset.ds is located in the DesignScript Editor (DSE) Samples.

Geometry.Plane.Method.Offset.ds#3

Geometry.Plane.Method.Offset.ds#3

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

Geometry.Plane.Method.Offset#3

Geometry.Plane.Method.Offset#3

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

Geometry.Plane.Method.Offset#3a

Geometry.Plane.Method.Offset#3a

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.Plane.Method.Offset#3b

Geometry.Plane.Method.Offset#3b

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

Geometry.Plane.Method.Offset#3b

Geometry.Plane.Method.Offset#3b

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

Plane.Method.Offset#3

Plane.Method.Offset#3a

Plane.Method.Offset#3b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Plane.ByOriginNormal.WithPlaneSize#2-Code to Node to Code

Hi Everyone:

This is the second, in a series of six Plane file translations. The file Geometry.Plane.ByOriginNormal.WithPlaneSize .ds is located in the DesignScript Editor (DSE) Samples.

Geometry.Plane.ByOriginNormal.WithPlaneSize.ds#2

Geometry.Plane.ByOriginNormal.WithPlaneSize.ds#2

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

Geometry.Plane.ByOriginNormal.WithPlaneSize#2_

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

Geometry.Plane.ByOriginNormal.WithPlaneSize#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.Plane.ByOriginNormal.WithPlaneSize#2b

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

2014_06_25Geometry.Plane.ByOriginNormal.WithPlaneSize-Graphic Window

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

Geometry.Plane.ByOriginNormal.WithPlaneSize#2

Geometry.Plane.ByOriginNormal.WithPlaneSize#2a

Geometry.Plane.ByOriginNormal.WithPlaneSize#2b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Plane.ByOriginNormal#1-Code to Node to Code

Hi Everyone:

On to a new series, with this being the first, in a series of six Plane file translations. The file Geometry.Plane.ByOriginNormal .ds is located in the DesignScript Editor (DSE) Samples.

Geometry.Plane.ByOriginNormal.ds#1

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

Geometry.Plane.ByOriginNormal#1

Geometry.Plane.ByOriginNormal#1

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

Geometry.Plane.ByOriginNormal#1a

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

Geometry.Plane.ByOriginNormal#1b

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

Geometry.Plane.ByOriginNormal, Windows graphic

Geometry.Plane.ByOriginNormal, Windows graphic

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

Geometry.Plane.ByOriginNormal#1

Geometry.Plane.ByOriginNormal#1a

Geometry.Plane.ByOriginNormal#1b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.Trim.UsingParameter.Line#49– Code to Node to Code

Hi Everyone:

This is the forty-ninth, in a series of forty-nine curve file translations. As mentioned in the last post, the previous file, Geometry.Curve.Trim.UsingParameter, was really the last of the Curve file types,  but due to a basic mistake in counting, there wasn’t forty-nine files. But now there is, and this is an attempt to illustrate the functioning portion of the trim mode using Parameter and Curve in the form of a line.

Since this Curve-Trim file is not  in the DesignScript Editor (DSE) Samples, and were making it up, lets name the file Geometry.Curve.Trim.UsingParameter.Line.ds.

Geometry.Curve.Trim.UsingParameter.Line.ds#49

Geometry.Curve.Trim.UsingParameter.Line.ds#49

This file Geometry.Curve.Trim.UsingParameter.Line.ds.as shown, above has been added to the Sample Library.

What’s been done here is to imagine a line as a surface and to use the trim command. The canvas is taken from the previous post and augmented with additional nodes. The  preliminary canvas is shown below.

Geometry.Curve.Trim.UsingParameter.Line#49

Geometry.Curve.Trim.UsingParameter.Line#49

Developing the nodes with a  naming scheme fills out the canvas.

Geometry.Curve.Trim.UsingParameter.Line#49a

Geometry.Curve.Trim.UsingParameter.Line#49a

Somewhat of an elaborate canvas layout is then transformed back into code with the “Node to Code” operation.

Geometry.Curve.Trim.UsingParameter.Line#49b

Geometry.Curve.Trim.UsingParameter.Line#49b

The Variables that could use further identification are highlighted above.

Geometry.Curve.Trim.UsingParameter.Line#49b-edited

Geometry.Curve.Trim.UsingParameter.Line#49b-edited

The edited portions of the script are highlighted above. Now, doing something a little different is copying and pasting this code into the DS Editor and running it.

Geometry.Curve.Trim.UsingParameter.Line.ds

Geometry.Curve.Trim.UsingParameter.Line.ds

While rather long, and probably the antithesis of coding’s elegance, the script ran and delivered the geometry with no errors.

Geometry.Curve.Trim.UsingParameter.Line-Graphic Window

Geometry.Curve.Trim.UsingParameter.Line-Graphic Window

That brings us full circle with the Curve-Trim file, fulfills the 49th Curve file statement (not that that means anything) as well as moves us into the next category of Planes.

Once again the files are available via Drop-Box for downloading at the links below. Also note that the *.ds version file is also available for putting into ones sample file library.

Geometry.Curve.Trim.UsingParameter.Line#49.bin

Geometry.Curve.Trim.UsingParameter.Line#49a.bin

Geometry.Curve.Trim.UsingParameter.Line#49b.bin

Geometry.Curve.Trim.UsingParameter.Line

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.Trim.UsingParameter#48– Code to Node to Code

Hi Everyone:

This is the forty-eighth, in a series of forty-nine curve file translations. The file Geometry.Curve.Trim.UsingParameter.ds is really the last of the Curve file types, but since this file doesn’t function and since a mistake was made here in basic counting,  number 49 is going to made up following this post. This Curve-Trim file is located in the DesignScript Editor (DSE) Samples, and is shown below.

Geometry.Curve.Trim.UsingParameter.ds

Geometry.Curve.Trim.UsingParameter.ds

Open and run Geometry.Curve.TangentAtDistance.ds in the DS Editor.

Geometry.Curve.Trim.UsingParameter.

Geometry.Curve.Trim.UsingParameter.

This isn’t anything new. We came across this “Index was outside the bounds of the array” error previously Geometry.Curve.Trim.UsingArrayOfParameters.ds and/or Geometry.Curve.Trim.UsingPoints.ds in the Trim file type.

Geometry.Curve.Trim.UsingPoints.ds-error

Geometry.Curve.Trim.UsingPoints.ds-error

To be fair, this may be happening (exception) due to the fact that we are using the standalone version of DesignScript for both the Editor and the Studio version. Also, due to using a mac to boot in virtual mode for windows 7. (no pun intended) Perhaps someone would like to verify this on a windows system and maybe even running AutoCAD?

Again lets pretend the file is functioning. Open DS Studio, and paste the DSE script into a blank canvas.

Geometry.Curve.Trim.UsingParameter#48

Geometry.Curve.Trim.UsingParameter#48

The preliminary translation is drawing the error warning. Ignoring this, and continuing with developing the canvas we get the definition below.

Geometry.Curve.Trim.UsingParameter#48a

Geometry.Curve.Trim.UsingParameter#48a

Again, the red and yellow highlighted areas indicate the groupings of nodes according to their properties. We are not going to translate this back into code due to the Trim error. Should there be any update and or fixes for this Trim file, it will be posted with a follow-up.

The geometry, with a little improvisation, that results from the code is shown below.

Geometry.Curve.Trim.UsingParameter-Graphic Window

Geometry.Curve.Trim.UsingParameter-Graphic Window

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

Geometry.Curve.Trim.UsingParameter#48

Geometry.Curve.Trim.UsingParameter#48a

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.TangentAtPoint#47– Code to Node to Code

Hi Everyone:

This is the forty-seventh, in a series of forty-nine curve file translations. The file Geometry.Curve.TangentAtPoint.ds is the last of three Curve-Tangent file types located in the DesignScript Editor (DSE) Samples.

Geometry.Curve.TangentAtPoint.ds

Geometry.Curve.TangentAtPoint.ds

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

Geometry.Curve.TangentAtPoint#47

Geometry.Curve.TangentAtPoint#47

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

Geometry.Curve.TangentAtPoint#47a

Geometry.Curve.TangentAtPoint#47a

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.TangentAtPoint#47b

Geometry.Curve.TangentAtPoint#47b

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

Geometry.Curve.TangentAtPoint-Graphic Window

Geometry.Curve.TangentAtPoint-Graphic Window

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

Geometry.Curve.TangentAtPoint#47

Geometry.Curve.TangentAtPoint#47a

Geometry.Curve.TangentAtPoint#47b

Thanks for looking.

T!M