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

Hi Everyone:

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

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

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

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

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

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4a

The full translation is shown below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4a

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"

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.

Partial view of Large Code Block in the DSS canvas

Partial view of Large Code Block in the DSS canvas

The Edited translation in one large code block is shown below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4b

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4b

The resulting Windows Graphic of the Arc is shown below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint_Windows Graphic

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint_Windows Graphic

The Arc files are available for download below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4a

Geometry.Curve.Arc.ByCenterPointStartPointSweepPoint#4b

Thanks for looking.

T!M

Advertisements

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