Monthly Archives: April 2014

DesignScript Curve Translation, Geometry.Curve.Project.OnSurface#32– Code to Node to Code

Hi Everyone:

This is the thirty-second, in a series of forty-nine curve file translations. The file, Geometry.Curve.Project.OnSurface#32 is the last in a series of three Curve-project files from the DesignScript Editor (DSE) Sample files.

Geometry.Curve.Project.OnSurface.ds#32

Geometry.Curve.Project.OnSurface.ds#32

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.Project.OnSurface#32

Geometry.Curve.Project.OnSurface#32

After being satisfied with the initial translation, we progress to the naming of variables and adding definition to the nodes properties.

Geometry.Curve.Project.OnSurface#32a

Geometry.Curve.Project.OnSurface#32a

The highlighted areas above shows the grouping of the properties of nodes that are returned based upon the method for Project-Curve.

Geometry.Curve.Project.OnSurface#32b

Geometry.Curve.Project.OnSurface#32b

The back to “Node to Code” translation returns a code-block of script which doesn’t require further editing. The Geometry that is generated from the code(s) is shown below.

Geometry.Curve.Project.OnSurface#32-Graphic Window

Geometry.Curve.Project.OnSurface#32-Graphic Window

The files are available to download from the links below.

Geometry.Curve.Project.OnSurface#32

Geometry.Curve.Project.OnSurface#32a

Geometry.Curve.Project.OnSurface#32b

Thanks for looking

T!M

Advertisements

DesignScript Curve Translation,Geometry.CurveProject.OnPlane.WithDirectionVector#31– Code to Node to Code

Hi Everyone:

This is the thirty-first, in a series of forty-nine curve file translations. The file, Geometry.CurveProject.OnPlane.WithDirectionVector.ds, is the second in a series of three Curve-Project files from the DesignScript Editor (DSE) Sample files.

Geometry.CurveProject.OnPlane.WithDirectionVector.ds#31

Geometry.CurveProject.OnPlane.WithDirectionVector.ds#31

Open the file, Geometry.CurveProject.OnPlane.WithDirectionVector.ds in the DS  Editor and run it to check for errors.

Geometry.CurveProject.OnPlane.WithDirectionVector.ds-a#31

Geometry.CurveProject.OnPlane.WithDirectionVector.ds-a#31

Errors are generated due to “CurveProject.OnPlane.WithDirectionVector” not having the properties that are associated with them. Before looking viewing this in DSS, first the nodes must be translated.

Geometry.CurveProject.OnPlane.WithDirectionVector#31

Geometry.CurveProject.OnPlane.WithDirectionVector#31

After the initial translation, the errors appear when further defining the properties of Project-Curve.

Geometry.CurveProject.OnPlane.WithDirectionVector.ds-a#31-graph Node Errors

Geometry.CurveProject.OnPlane.WithDirectionVector.ds-a#31-graph Node Errors

We do note however, that these particular properties were able to be defined on the previous Curve-Project file, Geometry.CurveProject.OnPlane. The WithDirection Vector seems to be the problem. In order to complete the file, we can use the Project Curve Node as a stand-in for these subject nodes.

Geometry.CurveProject.OnPlane.WithDirectionVector#31a

Geometry.CurveProject.OnPlane.WithDirectionVector#31a

Again this is being brought to the attention of the DesignScript Team so these errors are appropriately addressed. Next is the translation of the Nodes back to code.

Geometry.CurveProject.OnPlane.WithDirectionVector#31b

Geometry.CurveProject.OnPlane.WithDirectionVector#31b

Other than the anomalies mentioned in this translation, further editing of the code isn’t required.

Geometry.CurveProject.OnPlane.WithDirectionVector#31-Graphic Window

Geometry.CurveProject.OnPlane.WithDirectionVector#31-Graphic Window

The results of the code(s) are shown in the Graphic Window above, and the files are available for downloading below.

Geometry.CurveProject.OnPlane.WithDirectionVector#31

Geometry.CurveProject.OnPlane.WithDirectionVector#31a

Geometry.CurveProject.OnPlane.WithDirectionVector#31b

Thanks for looking.

T!M

 

 

 

DesignScript Curve Translation, Geometry.CurveProject.OnPlane#30– Code to Node to Code

Hi Everyone:

This is the thirtieth, in a series of forty-nine curve file translations. The file Geometry.CurveProject.OnPlane.ds is the first of three Curve-Project file types located in the DesignScript Editor (DSE) Sample files.

Geometry.CurveProject.OnPlane.ds

Open the DS Editor and copy the script generated from Geometry.CurveProject.OnPlane.ds. Then run DS Studio, and paste the script into the canvas.

Geometry.CurveProject.OnPlane#30

Geometry.CurveProject.OnPlane#30

Make sure that the script is commented out as the code is translated into graph nodes, to avoid them running consecutively with each other. The preliminary translation looks like the canvas shown above and the developed one below,

Geometry.CurveProject.OnPlane#30a

Geometry.CurveProject.OnPlane#30a

The red and yellow highlighted areas indicate the groupings of nodes according to their properties. Once satisfied that the translation is complete enact the “Node to Code” operation.

Geometry.CurveProject.OnPlane#30b

Geometry.CurveProject.OnPlane#30b

The resulting script doesn’t require further editing. The geometry that results from the codes(s) is shown below.

Geometry.CurveProject.OnPlane-Graphic Window

Geometry.CurveProject.OnPlane-Graphic Window

The files are available for downloading at the links below.

Geometry.CurveProject.OnPlane#30

Geometry.CurveProject.OnPlane#30a

Geometry.CurveProject.OnPlane#30b

Thanks for looking.

T!M

DesignScript Curve Translation,Geometry.CurvePointAtEqualArcLength#29– Code to Node to Code

Hi Everyone:

This is the twenty-ninth, in a series of forty-nine curve file translations. The file, Geometry.CurvePointAtEqualArcLength.ds is the last of three Curve-Point file types located in the DesignScript Editor (DSE) Sample files.

Geometry.CurvePointAtEqualArcLength.ds

Geometry.CurvePointAtEqualArcLength.ds

Open the DS Editor and run CurvePointAtEqualArcLength.ds, copy the resulting code, then paste it into a DS Studio blank canvas.

Geometry.CurvePointAtEqualArcLength#29

Geometry.CurvePointAtEqualArcLength#29

Comment out any script, to avoid them running consecutively with each other.

Geometry.CurvePointAtEqualArcLength#29a

Geometry.CurvePointAtEqualArcLength#29a

The highlighted portions indicate the grouping of node properties. Run the Code to Node operation.

Geometry.CurvePointAtEqualArcLength#29b

Geometry.CurvePointAtEqualArcLength#29b

Edit the Variable to be a single line of script.

Geometry.CurvePointAtEqualArcLength#29b-edited

Geometry.CurvePointAtEqualArcLength#29b-edited

And the geometry that results from the codes(s) is shown below.

Geometry.CurvePointAtEqualArcLength#29-Graphic Window

Geometry.CurvePointAtEqualArcLength#29-Graphic Window

The files can be downloaded from the links below.

Geometry.CurvePointAtEqualArcLength#29

Geometry.CurvePointAtEqualArcLength#29a

Geometry.CurvePointAtEqualArcLength#29b

Thanks for looking.

T!M

 

DesignScript Curve Translation, Geometry.CurvePointAtParameter#28– Code to Node to Code

Hi Everyone:

This is the twenty-eighth, in a series of forty-nine curve file translations. The file, Geometry.CurvePointAtParameter.ds is the second of three Curve-Point file types located in the DesignScript Editor (DSE) Sample files.

Geometry.CurvePointAtParameter.ds#28a

Geometry.CurvePointAtParameter.ds#28a

Open the file in the DSE, copy the code, then paste it into a DSS new canvas.

Geometry.CurvePointAtParameter#28

Geometry.CurvePointAtParameter#28

Comment out the pasted DSE script, to avoid  both codes from interfering with each other.

Geometry.CurvePointAtParameter#28a

Geometry.CurvePointAtParameter#28a

The highlighted areas show the grouping of nodes according to their properties. The Code to Node exchange shows one editing Variable needing attention.

Geometry.CurvePointAtParameter#28b

Geometry.CurvePointAtParameter#28b

Edit the Variable and the result is shown below.

Geometry.CurvePointAtParameter#28b-edited

Geometry.CurvePointAtParameter#28b-edited

The resulting Geometry from the codes(s) is shown below.

Geometry.CurvePointAtParameter#28-Windows Graphic

Geometry.CurvePointAtParameter#28-Windows Graphic

The files are available to download from the links below.

Geometry.CurvePointAtParameter#28

Geometry.CurvePointAtParameter#28a

Geometry.CurvePointAtParameter#28b

Thanks for looking.

T!M

 

DesignScript Curve Translation, Geometry.Curve.PointAtDistance#27– Code to Node to Code

Hi Everyone:

This is the twenty-seventh, in a series of forty-nine curve file translations. The file, Geometry.Curve.PointAtDistance.ds is the first of three Curve-Point file types located in the DesignScript Editor (DSE) Sample files.

Geometry.Curve.PointAtDistance.ds

Geometry.Curve.PointAtDistance.ds

Open the file, Geometry.Curve.PointAtDistance.ds from the sample files in the DSE. Copy the code, then paste it into a DSS new canvas.

Geometry.Curve.PointAtDistance#27

Geometry.Curve.PointAtDistance#27

To eliminate conflicts with both codes present in the canvas, be certain to comment out the pasted DSE script.

Geometry.Curve.PointAtDistance#27a

Geometry.Curve.PointAtDistance#27a

The  areas that a highlighted show how the node graphs are grouped according to their properties and is taken from the DSE file. (*.ds)

Geometry.Curve.PointAtDistance.ds

Geometry.Curve.PointAtDistance.ds

In the translation back to Code, a little editing is warranted.

Geometry.Curve.PointAtDistance#27b

Geometry.Curve.PointAtDistance#27b

Geometry.Curve.PointAtDistance-Graphic Window

Geometry.Curve.PointAtDistance-Graphic Window

The Graphic that results from the code is shown above and the files are available to download from the links below. (DropBox links)

Geometry.Curve.PointAtDistance#27

Geometry.Curve.PointAtDistance#27a

Geometry.Curve.PointAtDistance#27b

Thanks for looking.

T!M

 

 

DesignScript Curve Translation,Geometry.Curve.PlanesAtEqualArcLength#26– Code to Node to Code

Hi Everyone:

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

Geometry.Curve.PlanesAtEqualArcLength.ds#26

Geometry.Curve.PlanesAtEqualArcLength.ds#26

Open the file, Geometry.Curve.PlanesAtEqualArcLength.ds from the Sample files in the DesignScript Editor. Copy the code, then paste it into a DSS blank canvas. Begin the translation.

Geometry.Curve.PlanesAtEqualArcLength#26

Geometry.Curve.PlanesAtEqualArcLength#26

Avoid any conflicts when translating, with both codes running by commenting out the pasted script.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26a

Geometry.Curve.PlanesAtEqualArcLength.ds#-26a

The highlighted areas show the Node Graph’s properties and groupings.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b

Looking at the translation above, one can see that their is quite a bit of editing to do. And the reason turns out to be that when naming the Variables that  “myPlanesAtEqualArcLength” was not identified and named. So editing is required.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-edited

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-edited

Or one can go back to the node graph file and make the correction.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26a-edited

Geometry.Curve.PlanesAtEqualArcLength.ds#-26a-edited

And the when the translation to code takes place there is less editing required.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-2

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-2

The final result is shown below.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-2-edited

Geometry.Curve.PlanesAtEqualArcLength.ds#-26b-2-edited

The planes generated are shown below.

Geometry.Curve.PlanesAtEqualArcLength.ds#-26-Graphic Window

Geometry.Curve.PlanesAtEqualArcLength.ds#-26-Graphic Window

The files can be downloaded from the links below.

Geometry.Curve.PlanesAtEqualArcLength#26

Geometry.Curve.PlanesAtEqualArcLength#26a

Geometry.Curve.PlanesAtEqualArcLength#26b-edited

Thanks for looking.

T!M