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.
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.
With the exception drawn, we get the error.
Continuing on with the initial translation.
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
So the “discardBetweenPoints” input of False is disconnected and one imagines the Trim command functions so as to develop the translation.
Above we see the properties extracted from the Trim node to complete the definition. Then the Node to Code operation takes place.
A few house keeping edits are done.
The graphic windows that accompanies the running of the file is shown below.
The operation ends with the Graphic window below.
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.
Thanks for looking.