Hi Everyone:

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

Geometry.Curve.Composite.ds#1

The first thing to note is that *“Geoemtry*” is not really a new branch of **Math,** just a misspelling, which at some point hopefully gets corrected. More importantly though is the error this file generates when run in the DSE.

Geometry.Curve.Composite.ds_error

The problem turns out to be, when executing the* (“Create composite curve using method : Composite”* ) **Composite** command.

Geometry.Curve.Composite.ds- Error highlighted

Note the highlighted “*Composite curve operation failed*” statement after which the “*Deferencing a non-pointer“* warning is given for the remainder of the script.

One can investigate this error in node form, but first the preliminary translation to DesignScript Studio is required.

Geometry.Curve.Composite.ds#1

After the initial nodes have been laid out the composite node is gotten from the library and linked into position.

Geometry.Curve.Composite#1-error

As can be seen, we get a failure. However if one just takes one of the elements, a successful result can be obtained.

Geometry.Curve.Composite#1-error_solution

We can work with this to finish developing this translation, although this need some coding attention from the powers that be. (hint Autodesk)

Geometry.Curve.Composite#1a

Sticking with just the* mySpline* node as the operator for the *Curve.Composite* node we are able to extract the other specified properties. Satisfied, as much as possible with the translation thus far, the *“Node to Code”* translation can be initiated.

Geometry.Curve.Composite#1b

The script being rather long, can also be broken up to be more manageable.

Geometry.Curve.Composite#1b

Among all the anomalies in the script, the above middle stand-alone coordinate **Point2 **doesn’t figure to really have a purpose. With that said the relatively simple Window Graphic that is generated from this visual code is shown below.

Geometry.Curve.Composite_Windows Graphic

As usual, liberty was taken with color for visual interest. The files are available for downloading below.

Geometry.Curve.Composite#1

Geometry.Curve.Composite#1a

Geometry.Curve.Composite#1b

Thanks for looking.

T!M

### Like this:

Like Loading...

*Related*

tcmanganPosted this over at the autodesk community site.

http://forums.autodesk.com/t5/DesignScript/DesignScript-Curve-Translation-Curve-Composite-Code-to-Node/td-p/4882494

Pingback: DesignScript Curve Translation, Geometry.Curve.Composite.WithTolerence#8 – Code to Node to Code | architectsgarage