Monthly Archives: April 2014

DesignScript Curve Translation,Geometry.Curve.PlanesAtParameter.WithSize#25– Code to Node to Code

Hi Everyone:

This is the twenty-fifth, in a series of forty-nine curve file translations. The fileGeometry.Curve.PlanesAtParameter.WithSize.ds is also the fourth of five Curve-Plane file types in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.PlanesAtParameter.WithSize

Geometry.Curve.PlanesAtParameter.WithSize

Open the file,  Geometry.Curve.PlanesAtParameter.WithSize.ds  from the samples in the DS Editor. Copy the script and then open DSS and paste the code into the canvas. The initial translation is shown below.

Geometry.Curve.PlanesAtParameter.WithSize

Geometry.Curve.PlanesAtParameter.WithSize

Continue translating the properties from the DSE script, until complete.

Geometry.Curve.PlanesAtParameter.WithSize#25a

Geometry.Curve.PlanesAtParameter.WithSize#25a

Next,  initiate the Node to Code operation and get the translation shown below.

Geometry.Curve.PlanesAtParameter.WithSize#25b-edit

Geometry.Curve.PlanesAtParameter.WithSize#25b-edit

And the highlighted script is edited with the results shown below.

Geometry.Curve.PlanesAtParameter.WithSize#25b-edited

Geometry.Curve.PlanesAtParameter.WithSize#25b-edited

The geometry that results from the code is shown below.

Geometry.Curve.PlanesAtParameter.WithSize-Graphic Window

Geometry.Curve.PlanesAtParameter.WithSize-Graphic Window

And the files are available for downloading from the DropBox links below.

Geometry.Curve.PlanesAtParameter.WithSize#25

Geometry.Curve.PlanesAtParameter.WithSize#25a

Geometry.Curve.PlanesAtParameter.WithSize#25b

Thanks for looking.

T!M

 

 

Advertisements

DesignScript Curve Translation,Geometry.Curve.PlaneAtParameter#24– Code to Node to Code

Hi Everyone:

This is the twenty-fourth, in a series of forty-nine curve file translations. The fileGeometry.Curve.PlaneAtParameter.ds is also the third of five Curve-Plane file types in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.PlaneAtParameter.ds#24

Geometry.Curve.PlaneAtParameter.ds#24

Get started by copying the resulting code after opening the sample file in the DS Editor. Then open DS Studio and paste the code into the blank canvas. The initial translation looks something like below.

Geometry.Curve.PlaneAtParameter#24

Geometry.Curve.PlaneAtParameter#24

Developing the translation from the DSE script and making sure that the code is commented out so as not to cause a problem, when complete it looks like something below.

Geometry.Curve.PlaneAtParameter#24a

Geometry.Curve.PlaneAtParameter#24a

Next,  initiate the Node to Code operation and get the translation shown below.

Geometry.Curve.PlaneAtParameter#24b

Geometry.Curve.PlaneAtParameter#24b

As highlighted above, a little editing is in order.

Geometry.Curve.PlaneAtParameter#24b-edited

Geometry.Curve.PlaneAtParameter#24b-edited

Please note that “PlaneAtParameter” node can call for a single parameter (plane) or a multiple one. Here we executed both, first with the initial translation and then with the developed one.

Geometry.Curve.PlaneAtParameter-Graphic Window

Geometry.Curve.PlaneAtParameter-Graphic Window

Below the multiple planes are shown.

Geometry.Curve.PlaneAtParameter- Graphic Window

Geometry.Curve.PlaneAtParameter- Graphic Window

The files are available from the links below via Drop Box.

Geometry.Curve.PlaneAtParameter#24

Geometry.Curve.PlaneAtParameter#24a

Geometry.Curve.PlaneAtParameter#24b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.PlaneAtDistanceWithPlaneSize #23– Code to Node to Code

Hi Everyone:

This is the twenty-third, in a series of forty-nine curve file translations. The file, Geometry.Curve.PlaneAtDistanceWithPlaneSize.ds is also the second of five Curve-Plane file types in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.PlaneAtDistanceWithPlaneSize.ds#23

Geometry.Curve.PlaneAtDistanceWithPlaneSize.ds#23

Copy the code from the editor (DSE), open DS Studio’s ( DSS) canvas and paste the script into it. Below is the initial translation.

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23

And translating the sample file’s properties into graph nodes, the result is something similar to the view below.

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23a

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23a

Satisfied that the translation is complete, the nodes are converted back into code.

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23b

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23b

A little editing is called for as highlighted.

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23b-Edited

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23b-Edited

And with that, the Windows graphic that is generated is shown below.

Geometry.Curve.PlaneAtDistanceWithPlaneSize_Windows Graphic

Geometry.Curve.PlaneAtDistanceWithPlaneSize_Windows Graphic

The files can be downloaded from the Drop-Box links below.

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23a

Geometry.Curve.PlaneAtDistanceWithPlaneSize#23b

Thanks for looking.

T!M

DesignScript Curve Translation, Geometry.Curve.PlaneAtDistance.ds#22– Code to Node to Code

Hi Everyone:

This is the twenty-second, in a series of forty-nine curve file translations. The fileGeometry.Curve.PlaneAtDistance.ds is also one of five Curve-Plane file types in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.PlaneAtDistance.ds#22

Geometry.Curve.PlaneAtDistance.ds#22

Copy the script from the DSE, open DSS and paste it into the canvas.  The initial translation below contains the essential elements.

Geometry.Curve.PlaneAtDistance#22

Geometry.Curve.PlaneAtDistance#22

Note the script that is still present from the editor. Make sure it is adequately dealt with in terms of commenting it out  (// or /* ), so that it doesn’t interfere (run) with the translation.

Geometry.Curve.PlaneAtDistance#22a

Geometry.Curve.PlaneAtDistance#22a

The Node to Code translation is the next step and is shown below.

Geometry.Curve.PlaneAtDistance#22b-edit

Geometry.Curve.PlaneAtDistance#22b-edit

A little editing is in order as highlighted above.

Geometry.Curve.PlaneAtDistance#22b-Edited

Geometry.Curve.PlaneAtDistance#22b-Edited

And the Windows graphic from the code(s) is presented below.

Geometry.Curve.PlaneAtDistance#22-windows Graphic

Geometry.Curve.PlaneAtDistance#22-windows Graphic

The files are available for downloading from the DROP-BOX links below.

Geometry.Curve.PlaneAtDistance#22

Geometry.Curve.PlaneAtDistance#22a

Geometry.Curve.PlaneAtDistance#22b

Thanks for looking.

T!M

 

 

DesignScript Curve Translation, Geometry.Curve.ParameterAt Distance#21– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.ParameterAt Distance.ds#21b

Geometry.Curve.ParameterAt Distance.ds#21b

Copy the script from the DSE, open DSS and paste it into the canvas. Once again, the initial translation contains the essential elements.

Geometry.Curve.ParameterAt Distance#21

Geometry.Curve.ParameterAt Distance#21

One can let the script remain in the canvas, but be sure to comment it out so that it doesn’t run in tandem with the node Graph.

Geometry.Curve.ParameterAt Distance#21

Geometry.Curve.ParameterAt Distance#21

Note the grouping structure of the graph nodes reflect the commented out script from the DSE. Also be mindful that highlighted names had the code (” /*” and “// “) erased for graphical purposes.

When satisfied with the layout and definitions of the node, the translation to code can be administered.

Geometry.Curve.ParameterAt Distance#21b

Geometry.Curve.ParameterAt Distance#21b

The script that could use a little editing is highlighted.

Geometry.Curve.ParameterAt Distance#21b-edited

Geometry.Curve.ParameterAt Distance#21b-edited

The geometry that results from executing the file is shown in the graphical window below.

Geometry.Curve.ParameterAt Distance.ds#21b-Graphic Window

Geometry.Curve.ParameterAt Distance.ds#21b-Graphic Window

The files can be downloaded from the links below.

Geometry.Curve.ParameterAt%20Distance#21

Geometry.Curve.ParameterAt%20Distance#21a

Geometry.Curve.ParameterAt%20Distance#21b

Thanks for looking

T!M

DesignScript Curve Translation, Geometry.Curve.NormalAtPoint#20– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.NormalAtPoint.ds#20

Geometry.Curve.NormalAtPoint.ds#20

After copying the script from the DSE, open DSS and paste it into the canvas. The initial translation contains the essential elements as shown below.

Geometry.Curve.NormalAtPoint#20

Geometry.Curve.NormalAtPoint#20

Make sure the pasted script is commented out so that it isn’t running as well as the translation. (otherwise a crash maybe)

Geometry.Curve.NormalAtPoint#20a

Geometry.Curve.NormalAtPoint#20a

Satisfied that node definitions are suitably defined, initial the Code to Node operation.

Geometry.Curve.NormalAtPoint#20b

Geometry.Curve.NormalAtPoint#20b

Doesn’t look like any further editing is needed. The Geometry graphic that is generated is shown below.

Geometry.Curve.NormalAtPoint#20-Graphic Window

Geometry.Curve.NormalAtPoint#20-Graphic Window

The files for this translation can be downloaded from the links below.

Geometry.Curve.NormalAtPoint#20

Geometry.Curve.NormalAtPoint#20a

Geometry.Curve.NormalAtPoint#20b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.Curve.NormalAtParameters#19– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.NormalAtParameter.ds#19

Geometry.Curve.NormalAtParameter.ds#19

This file is similar to the last post, # 18, Geometry.Curve.NormalAtDistance.ds ,however after opening, copying the script from the DSE and pasting it into DSS, we see that it is different.

Geometry.Curve.NormalAtParameter#19

Geometry.Curve.NormalAtParameter#19

The initial translation is shown above with the script from the DSE pasted into the canvas as a Large Code Bock that is commented.  The Node’s properties and definitions are developed into the Graph Nodes below.

Geometry.Curve.NormalAtParameter#19a

Geometry.Curve.NormalAtParameter#19a

When satisfied with the translation, institute the “Code to Node” operation.

Geometry.Curve.NormalAtParameter#19b

Geometry.Curve.NormalAtParameter#19b

The Geometry in the Graphic Window that the code generates is shown below.

Geometry.Curve.NormalAtParameter#19-Graphic Window

Geometry.Curve.NormalAtParameter#19-Graphic Window

The files are available for download at the links below.

Geometry.Curve.NormalAtParameter#19

Geometry.Curve.NormalAtParameter#19a

Geometry.Curve.NormalAtParameter#19b

Thanks for looking.

T!M