DesignScript

Reply
Valued Contributor
tcmitts
Posts: 60
Registered: ‎05-05-2013
Message 1 of 1 (190 Views)

DesignScript Curve Translation,Geometry.Curve.Trim.UsingArrayOfParameters#5

190 Views, 0 Replies
03-17-2014 04:26 PM

 

Hi Everyone:

 

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

 

2013_12_21-Geometry.Curve.Trim.UsingArrayOfParameters.ds#5.PNG

 

 

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

 

DSE_error.PNG

 

 

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

 

 

Exception_Window.PNG

 

 

 

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

 

Screenshot 2014-03-17 12.23.07.png

 

 

Above the essential graph nodes are laid out.

 

 

Screenshot 2014-03-17 12.39.03.png

 

 

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

 

 

Screenshot 2014-03-17 12.47.17.png

 

 

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

 

 

2013_12_21-Geometry.Curve.Trim.UsingArrayOfParameters#5_graphic-a.PNG

 

 

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.PNG

 

 

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

Anyone want to fix it?

 

Regardless, these files are available for download at the architect's Garage blog.

 

 

Thanks for looking.

 

T!M

 

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Visit Autodesk Labs
Autodesk Labs is home for new prototypes, experiments, applications, and technologies.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community