DesignScript Curve Translation,Geometry.Curve.Trim.UsingPoints#6– Code to Node to Code

Hi Everyone:

This the sixth DesignScript file in a series of forty-nine curve translations. The file, Geometry.Curve.Trim.UsingPoints.ds is from the DesignScript Editor (DSE) Sample files.

Geometry.Curve.Trim.UsingPoints.ds

Geometry.Curve.Trim.UsingPoints.ds

Like the previous DesignScript file,  the operator Trim for curves,  draws an exception. It should be pointed out that the vast majority of the Sample files work perfectly, so as not to get the wrong idea. DesignScript is a very elegant program, it simply needs (Alpha) development attention. Also, one need to know that these translations are done with the Stand-Alone version of DesignScript, so the functionality of it being a plugin for AutoCAD is not being reviewed.

With that said, lets take a look at the DesignScript Editor.

Geometry.Curve.Trim.UsingPoints.ds

Geometry.Curve.Trim.UsingPoints.ds

With the exception drawn, we get the error.

exception

exception

Continuing on with the initial translation.

Geometry.Curve.Trim.UsingPoints#6-Exception

Geometry.Curve.Trim.UsingPoints#6-Exception

Looking closer we see the Trim node and defined it as myTrimmedCurve.  At this point it’s best to disconnect one of the inputs in order to prevent the program from crashing.

Geometry.Curve.Trim.UsingPoints#6-Index, Out of Bounds

Geometry.Curve.Trim.UsingPoints#6-Index, Out of Bounds

So the “discardBetweenPoints” input of False is disconnected and one imagines the Trim command functions so as to develop the translation.

2013_12_21-Geometry.Curve.Trim.UsingPoints#6a

2013_12_21-Geometry.Curve.Trim.UsingPoints#6a

Above we see the properties extracted from the Trim node to complete the definition. Then the Node to Code operation takes place.

Geometry.Curve.Trim.UsingPoints#6b-edit

Geometry.Curve.Trim.UsingPoints#6b-edit

A few house keeping edits are done.

Geometry.Curve.Trim.UsingPoints#6b

Geometry.Curve.Trim.UsingPoints#6b

The graphic windows that accompanies the running of the file is shown below.

Geometry.Curve.Trim.UsingPoints-Graphic Window.

Geometry.Curve.Trim.UsingPoints-Graphic Window.

The operation ends with the Graphic window below.

Geometry.Curve.Trim.UsingPoints-Graphic Window-error drawn

Geometry.Curve.Trim.UsingPoints-Graphic Window-error drawn

This file is now ready to be corrected. (Thanks in advance lol.)

The files are available for downloading with the links below.

Geometry.Curve.Trim.UsingPoints#6

Geometry.Curve.Trim.UsingPoints#6a

Geometry.Curve.Trim.UsingPoints#6b

Thanks for looking.

T!M

Advertisements

One thought on “DesignScript Curve Translation,Geometry.Curve.Trim.UsingPoints#6– Code to Node to Code

  1. Pingback: DesignScript Curve Translation, Geometry.Curve.Trim.UsingParameter#48– Code to Node to Code | architectsgarage

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 )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s