DesignScript Curve Translation, Geometry.Curve.CoordinateSystemAtParameter#11– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.CoordinateSystemAtParameter.ds#11

Geometry.Curve.CoordinateSystemAtParameter.ds#11

After opening the file in the DSE, copy the script and paste it into a blank canvas in DSS. The initial translation looks something like shown below.

Geometry.Curve.CoordinateSystemAtParameter#11

Geometry.Curve.CoordinateSystemAtParameter#11

After it has been roughed out. it might be good to use some of the special nodes to further define and clarify the variables and personalize the nodes to aid in reading and translating them.

CodeBlock node

CodeBlock node

First off there is the CodeBlock Node which can be accessed in the Special Nodes category of the library, or more commonly activated by just double clicking in a blank space in the DesignScript canvas.

Driver Node

Driver Node

The Driver Node can be used in lieu of the CodeBlock node to add naming a definition to a variable, in this case 0.1234 is being shown.

Identifier Node

Identifier Node

Then there is the Identifier Node, which adds naming to a node that can serve as a link between a CodeBlock Node and another graph node. As one continues the translation, its usage will provide adequate identification to all the script that was in the DSE sample file.

Geometry.Curve.CoordinateSystemAtParameter#11a

Geometry.Curve.CoordinateSystemAtParameter#11a

Satisfied with the translation, then the “Node to Code” operation follows.

Geometry.Curve.CoordinateSystemAtParameter#11b

Geometry.Curve.CoordinateSystemAtParameter#11b

And the Graphic Window that results from these translations is shown below.

Geometry.Curve.CoordinateSystemAtParameter-Graphic Window

Geometry.Curve.CoordinateSystemAtParameter-Graphic Window

As a reminder to all, again, this translation was done with the Stand-Alone version of DesignScript, yet it still will work as a AutoCAD plugin.

The files can be downloaded from the links below.

Geometry.Curve.CoordinateSystemAtParameter#11

Geometry.Curve.CoordinateSystemAtParameter#11a

Geometry.Curve.CoordinateSystemAtParameter#11b

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