DesignScript Curve Translation,Geometry.Curve.Trim.UsingArrayOfParameters#5– Code to Node to Code

 

Hi Everyone:

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

Geometry.Curve.Trim.UsingArrayOfParameters.ds#5

Geometry.Curve.Trim.UsingArrayOfParameters.ds#5

This is another file that is not functioning. The operator “Trim” for curves draws an Exception. First lets take a look at the DSE.

Geometry.Curve.Trim.UsingArrayOfParameters.DSE-error

Geometry.Curve.Trim.UsingArrayOfParameters.DSE-error

The “Index was outside the bounds of the array” is the error.

Geometry.Curve.Trim.UsingArrayOfParameters.ds-Exception_Window

Geometry.Curve.Trim.UsingArrayOfParameters.ds-Exception_Window

With that lets do some pretending till the powers that be fix this in DesignScript.

Geometry.Curve.Trim.UsingArrayOfParameters.

Geometry.Curve.Trim.UsingArrayOfParameters.

Above the essential graph nodes are laid out.

Geometry.Curve.Trim.UsingArrayOfParameters#5a

Geometry.Curve.Trim.UsingArrayOfParameters#5a

Above we see the properties extracted from the Trim node and actualized so that the error is drawn, but the definition is complete.

Geometry.Curve.Trim.UsingArrayOfParameters#5b

Geometry.Curve.Trim.UsingArrayOfParameters#5b

And above the “Node to Code” operation was enacted.

Geometry.Curve.Trim.UsingArrayOfParameters#5_graphic-a

Geometry.Curve.Trim.UsingArrayOfParameters#5_graphic-a

As the file loads initially one gets the Windows Graphic as shown above.  Then one gets the

view as shown below as the file completes its operation.

2013_12_21-Geometry.Curve.Trim.UsingArrayOfParameters#5_graphic-b

2013_12_21-Geometry.Curve.Trim.UsingArrayOfParameters#5_graphic-b

Of course one might think that the operation was successful, given the extent of the trim command, but unfortunately not.

Regardless, the files are available to download below. Anyone want to fix it?

Geometry.Curve.Trim.UsingArrayOfParameters#5

Geometry.Curve.Trim.UsingArrayOfParameters#5a

Geometry.Curve.Trim.UsingArrayOfParameters#5b

Thanks for looking.

T!M

Advertisements

One thought on “DesignScript Curve Translation,Geometry.Curve.Trim.UsingArrayOfParameters#5– 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