Tag Archives: Project.OnPlane

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

 

 

 

Advertisements

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