DesignScript Curve Translation, Line.StartPointEndPoint#2- Code to Node to Code

Hi Everyone:

This is the second Line file, Curve.Line.ByStartPointEndPoint, in a series of four curve- line translations from the DesignScript Editor Sample files.

Geometry.Curve.Line.StartPointEndPoint.ds

Geometry.Curve.Line.ByStartPointEndPoint.ds

Pick the highlighted file in he editor (DSE), open it and copy the script, then open (DesignScript Studio) DSS and paste the script into a new canvas. Develop the translation.

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.ByStartPointEndPoint#2

Note the sequence of properties that the line node commands as illustrated and shown below.

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.ByStartPointEndPoint#2a

Execute the “Node to Code” and translate the graph canvas to the script as shown below.

Geometry.Curve.Line.StartPointEndPoint#2b

Geometry.Curve.Line.ByStartPointEndPoint#2b

A small portion of the highlighted script is edited as shown.

Geometry.Curve.Line.StartPointEndPoint#2b

Geometry.Curve.Line.BYStartPointEndPoint#2b

This makes for a more compact code. The resulting Graphic from  Curve.Line.ByStartPointEndPoint is shown below.

Curve.Line.ByStartPointEndPoint

Curve.Line.ByStartPointEndPoint

The files are available for download from the links below.

Geometry.Curve.Line.StartPointEndPoint#2

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.StartPointEndPoint#2b

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