DesignScript Coordinate Translation #13, Code to Node +

Hi Everyone:

Here is the thirteenth DesignScript Coordinate Translation entitled CoordinateSystem.ByThreePoints.IsSheared from the DSE (lite).

CoordinateSystem.ByThreePoints.IsSheared.ds

CoordinateSystem.ByThreePoints.IsSheared.ds

After loading it, copying and then pasting the code into the DSS canvas window we either follow the same procedure that has been done previously or one can edit the previous file CoordinateSystem.ByThreePoints#12.

CoordinateSystem.ByThreePoints.IsSheared#13

CoordinateSystem.ByThreePoints.IsSheared#13

In this file there is the “IsSheared” property of the Coordinate system node. So in filling out the translation the identifier node from the DSS Library was used to add information.

CoordinateSystem.ByThreePoints.IsSheared#13a

CoordinateSystem.ByThreePoints.IsSheared#3a

Taking a look at the results in the next translation “from Node to Code”, lets look at how the translation is made. One uses the mouse to click and drag a bounding box around the canvas graph nodes that have been laid out.

CoordinateSystem.ByThreePoints#12-Bounding Box

CoordinateSystem.ByThreePoints#12-Bounding Box

Node the highlighted 3 dots on the upper right of the bounding box. Let the mouse hover over that.

CoordinateSystem.ByThreePoints-Covert Nodes to Code

CoordinateSystem.ByThreePoints-Covert Nodes to Code

Then click on the resulting “Convert Nodes to Code”. A new window will result with the translation to code.

CoordinateSystem.ByThreePoints#12 - Graphic Window

Now, if one had not made further clarification to the “Is Sheared” property  then we would had a variable Number (i.e.. Var 41) equaling true, then on the next line the “bool_isSheared” equaling “Var 41” as shown to the left.

The clarification that was made though is shown below.

CoordinateSystem.ByThreePoints- Graphic Window

CoordinateSystem.ByThreePoints- Graphic Window

Here is the final translation.

CoordinateSystem.ByThreePoints.IsSheared#13b

CoordinateSystem.ByThreePoints.IsSheared#13b

And below find the Graphic in the Standalone Window.

CoordinateSystem.ByThreePoints.IsSheared#13 Graphic Window

The files are available to download below.

CoordinateSystem.ByThreePoints.IsSheared#13

CoordinateSystem.ByThreePoints.IsSheared#13a

CoordinateSystem.ByThreePoints.IsSheared#13b

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