DesignScript Curve Translation #4, Arc – Code to Node to Code

Here is the fourth curve translation in a series of five Arc files, access it through the DSE sample files, as shown below. (Note the standalone version of DesignScript Editor / Studio is being used for these samples.)

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint.ds#4

After opening the file, Curve.Arc.ByCenterPointStartPointSweepPoint in the Editor, copy and paste it into the DSS canvas to make a new file.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4

After the initial translation, begin to generate the additional properties, for the curve, arc, with both guaranteed and unguaranteed properties.

partial view-Curve.Arc.ByCenterPointStartPointSweepPoint#4a

Laying out and identifying the graph nodes its best to attempt to not ignore naming nodes appropriately. For example in the graphic above the set visibility note should have it’s variable identified further, to avoid confusion in further translations.

Partial view of graphic node

For the “true” code block one might use the Identifier Node, place it in the canvas (see Var70 above) and move it into position while editing it sufficiently. (see below)

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4a

The full translation is shown below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4a

After being satisfied that all the nodes are attended to, on to the “Node to Code” translation.

Partial view of DesignScript Translation“Node to Code”

The code that could use a little clarifying is still the Visibility Node translation. Make it a one line statement by substituting “true” for ” Var71″ on the second highlighted line, while deleting the first highlighted statement.