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

Hi Everyone:

Here is the third curve translation in a series of five Arc files, access it through the DSE sample files, as shown below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal.ds#3Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal.ds#3

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

2013_12_19-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3

2013_12_19-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3

Continue the translation one gets a translation similar to one below.

2013_12_19-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3a

2013_12_19-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3a

After being satisfied that the translation has been adequately defined execute the “Code to Node” operation to change the graph nodes to script. A couple of lines of code could be improved.

Capture

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3b

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3b

Combine the two lines of script to make one line, by eliminating the Var#’s. Then the file looks like below.

2014_01_23-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3b-1

2014_01_23-Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3b-1

Here is the Windows Graphic that results from the arc file.

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3-Windows Graphic

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3-Windows Graphic

The files are available for downloading below.

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3a

Geometry.Curve.Arc.ByCenterPointStartPointSweepAngleNormal#3b

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s