Tag Archives: architecting

#DesignScript -Geometry.Surface.SelectTrim.SingleSolid#16 – Code to Node to Code

Hi Everyone:

This is the sixteenth of twenty-eight DesignScript Surface translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.SelectTrim.SingleSolid-ds#16

Geometry.Surface.SelectTrim.SingleSolid-ds#16

Open the file Geometry.Surface.SelectTrim.SingleSolid.ds, in the DS Editor and run it. The script is shown below. This file draws errors as highlighted below. We will develop some workaround for the translation.

Geometry.Surface.SelectTrim.SingleSolid.ds#16

Geometry.Surface.SelectTrim.SingleSolid.ds#16

Now open DS Studio, copy & paste the DSE script,  Geometry.Surface.SelectTrim.SingleSolid.ds, into a blank canvas.

Geometry.Surface.SelectTrim.SingleSolid#a16

Geometry.Surface.SelectTrim.SingleSolid#a16

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.SelectTrim.SingleSolid#a16-edited

Geometry.Surface.SelectTrim.SingleSolid#a16-edited

Now comment out the “(import(ProGeometry.dll)” script. It can now be run as a Code Block of script, before the translation to Nodes takes place. Note the error is reporting “Differencing a non-pointer”.

Geometry.Surface.SelectTrim.SingleSolid#16

Geometry.Surface.SelectTrim.SingleSolid#16

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.SelectTrim.SingleSolid#16a-left

Geometry.Surface.SelectTrim.SingleSolid#16a-left

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file. Note the work around to get the script to return values.

Geometry.Surface.SelectTrim.SingleSolid#16b

Geometry.Surface.SelectTrim.SingleSolid#16b

The “Node to Code” operation as shown above. A little editing is desired.

Geometry.Surface.SelectTrim.SingleSolid#16b-edited

Geometry.Surface.SelectTrim.SingleSolid#16b-edited

The geometry that results from the various code translations is shown below.

Geometry.Surface.SelectTrim.SingleSolid#16a-Graphic Window

Geometry.Surface.SelectTrim.SingleSolid#16a-Graphic Window

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.SelectTrim.SingleSolid#a16

Geometry.Surface.SelectTrim.SingleSolid#16

Geometry.Surface.SelectTrim.SingleSolid#16a

Geometry.Surface.SelectTrim.SingleSolid#16b

Thanks for looking.

T!M

Advertisements

#DesignScript – Geometry.Surface.SweeptSurface.ByProfilePath#1- Code to Node to Code

Hi Everyone:

This is the first of twenty-eight DesignScript Surface translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.SweptSurface.ByProfilePath-ds#1

Geometry.Surface.SweptSurface.ByProfilePath-ds#1

Open the file Geometry.Surface.SweeptSurface.ByProfilePath.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.SweptSurface.ByProfilePath.ds#1

Geometry.Surface.SweptSurface.ByProfilePath.ds#1

Now open DS Studio, copy & paste the DSE script,  Geometry.Surface.SweeptSurface.ByProfilePath.ds, into a blank canvas.

Geometry.Surface.SweptSurface.ByProfilePath#a1

Geometry.Surface.SweptSurface.ByProfilePath#a1

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.SweptSurface.ByProfilePath#a1-edited

Geometry.Surface.SweptSurface.ByProfilePath#a1-edited

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.SweptSurface.ByProfilePath#1

Geometry.Surface.SweptSurface.ByProfilePath#1

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.SweptSurface.ByProfilePath#1a

Geometry.Surface.SweptSurface.ByProfilePath#1a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Geometry.Surface.SweptSurface.ByProfilePath#1b

Geometry.Surface.SweptSurface.ByProfilePath#1b

The “Node to Code” operation as shown above.

The geometry that results from the various code translations is shown below.

Geometry.Surface.SweptSurface.ByProfilePath#1-Windows Graphic

Geometry.Surface.SweptSurface.ByProfilePath#1-Windows Graphic

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.SweeptSurface.ByProfilePath#a1

Geometry.Surface.SweeptSurface.ByProfilePath#1

Geometry.Surface.SweeptSurface.ByProfilePath#1a

Geometry.Surface.SweeptSurface.ByProfilePath#1b

Thanks for looking.

T!M

#DesignScript -Geometry.Surface.SubDivisionMesh.FromGeometry#5- Code to Node to Code

 Hi Everyone:

This is the fifth of six DesignScript SubDivisionMesh translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.SubDivisionMesh.FromGeometry-ds#5

Geometry.Surface.SubDivisionMesh.FromGeometry-ds#5

Open the file Geometry.Surface.SubDivisionMesh.FromGeometry.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5

Again note that the script is drawing errors from the DSE as shown in highlighted portion of the code. Taking a look at the DS Editors Help screen menu.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry2

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry2

Click on the Geometry section on the page and see the Geometry Abstract structure of the Design Script Program.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry1

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry1

Open the highlighted SubDivisionMesh section.

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry

Geometry.Surface.SubDivisionMesh.FromGeometry#5-geometry

At the top of the page as highlighted one sees that the SubDivisionMesh Class is not supported in Design Script Studio Alpha nor in DS Editor Lite. Since this is what we are running, one might try this running as a plugin for AutoCAD.

Looking for a work around would be based upon creating a SubDivisionMesh on the surface geometry, in this case by faceting the  surface. This is another file that needs some help from a DesignScript enthusiast.

Nonetheless lets continue with the work that can be done with what we have. Open DS Studio, copy & paste the DSE script, Geometry.Surface.SubDivisionMesh.FromGeometry.ds, into a blank canvas.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5-editing

Geometry.Surface.SubDivisionMesh.FromGeometry#a5-editing

Note the highlighted commenting out which must be deleted in order to activate the code. Again this file draws the same errors.

Geometry.Surface.SubDivisionMesh.FromGeometry#5

Geometry.Surface.SubDivisionMesh.FromGeometry#5

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file. Note the list of unexecuted properties.  Again, this needs work.

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

The “Node to Code” operation as shown above.

Geometry.Surface.SubDivisionMesh.FromGeometry#5b-edited

Geometry.Surface.SubDivisionMesh.FromGeometry#5b-edited

The geometry that results from the various code translations is shown below.

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5a-Graphic Window

Geometry.Surface.SubDivisionMesh.FromGeometry.ds#5a-Graphic Window

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.SubDivisionMesh.FromGeometry#a5

Geometry.Surface.SubDivisionMesh.FromGeometry#5

Geometry.Surface.SubDivisionMesh.FromGeometry#5a

Geometry.Surface.SubDivisionMesh.FromGeometry#5b

Thanks for looking.

T!M

#DesignScript – Geometry.Surface.SubDivisionMesh.ConvertToSolid#3- Code to Node to Code

 Hi Everyone:

This is the third of six DesignScript SubDivisionMesh translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-ds#3

Geometry.Surface.SubDivisionMesh.ConvetToSolid-ds#3

Open the file Geometry.Surface.SubDivisionMesh.ConvertToSolid.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.SubDivisionMesh.ConvetToSolid.ds#3

Geometry.Surface.SubDivisionMesh.ConvetToSolid.ds#3

Again note that the script is drawing errors from the DSE as shown in highlighted portion of the code.  The ConvertedSolid properties are not being generated. We will have to see if an improvement can be made in the translation from the DS Editor (*.ds) file to the DS Studio (*.Bin) version.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#a3

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#a3

Now open DS Studio, copy & paste the DSE script, Geometry.Surface.SubDivisionMesh.ConvertToSolid.ds, into a blank canvas. Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place

Geometry.Surface.SubDivisionMesh.ConvetToSolid#a3-edited

Geometry.Surface.SubDivisionMesh.ConvetToSolid#a3-edited

Note the highlighted commenting out which must be deleted in order to activate the code. Again this file draws the same errors.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3a

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file. note the workarounds for various nodes.

Developing the translation for further interest, the Surface Mesh is further broken down to show the various faces with different colors applied.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b-alt

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b-alt

The “Node to Code” operation as shown above. Due to the fact  that this script has become rather long, it’s initially broken into two columns.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b-top

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b-top

Combining them back into a single column the highlighted Variables require  editing in order to have named identities to the variables.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b-edited

The geometry that results from the various code translations is shown below.

Geometry.Surface.SubDivisionMesh.ConvetToSolid#3-Graphic Window

Geometry.Surface.SubDivisionMesh.ConvetToSolid#3-Graphic Window

The Graphics were further altered with making the colors have transparency as shown below.

Geometry.Surface.SubDivisionMesh.ConvetToSolid#3-Graphic Window-2

Geometry.Surface.SubDivisionMesh.ConvetToSolid#3-Graphic Window-2

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#a3

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3a

Geometry.Surface.SubDivisionMesh.ConvetToSolid-#3b

Thanks for looking.

T!M

#DesignScript – Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4- Code to Node to Code

 Hi Everyone:

This is the last, in a series of four DesignScript RevolvedSurface translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle-ds#4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle-ds#4

Open the file Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle.ds#4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle.ds#4

Now open DS Studio, copy & paste the DSE script, Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle.ds, into a blank canvas.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#a4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#a4

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#a4-edited

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#a4-edited

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4a

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4b

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4b

The “Node to Code” operation as shown above. The geometry that results from the various code translations is shown below.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4-Graphic Window

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4-Graphic Window

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#a4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4a

Geometry.Surface.RevolvedSurface.ByProfileAxisOriginDirectionAngle#4b

Thanks for looking.

T!M

#DesignScript – Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3- Code to Node to Code

 

Hi Everyone:

This is a the last in the series three DesignScript LoftedSurface translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath-ds#3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath-ds#3

Open the file Geometry.Surface.LoftedSurface.FromCrossSectionsPath.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath.ds#3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath.ds#3

Now open DS Studio, copy & paste the DSE script, Geometry.Surface.LoftedSurface.FromCrossSectionsPath.ds, into a blank canvas.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3-edited

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3-edited

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3

The preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3a

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3b

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3b

The “Node to Code” operation as shown above. The geometry that results from the various code translations is shown below.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3-Graphic Window

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3-Graphic Window

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#a3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3a

Geometry.Surface.LoftedSurface.FromCrossSectionsPath#3b

Thanks for looking.

T!M

#DesignScript Geometry.Surface.BSplineSurface.NormalAtPoint#7- Code to Node to Code

 

Hi Everyone:

This is a DS file translation entitled Geometry.Surface.BSplineSurface.NormalAtPoint.ds, from the DesignScript Editor (DSE) Samples. It is the last in a series of seven BSpline Surface type of files.

Geometry.Surface.BSplineSurface.NormalAtPoint-ds#7

Geometry.Surface.BSplineSurface.NormalAtPoint-ds#7

Open the file Geometry.Surface.BSplineSurface.NormalAtPoint.ds in the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint.ds#7

Geometry.Surface.BSplineSurface.NormalAtPoint.ds#7

Now open DS Studio, copy the DSE script, Geometry.Surface.BSplineSurface.NormalAtPoint.ds and then paste it into a blank canvas.

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.BSplineSurface.NormalAtPoint#a7-edited

Geometry.Surface.BSplineSurface.NormalAtPoint#a7-edited

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

As one breaks down the code block in the canvas, it’s noticed that a custom node is required, as the script begins to draw an error. Create and use a Node to solve this problem

Custom Node-PtTransporter

Custom Node-PtTransporter

This script shown above should be written and run in the DS Editor and saved, then inserted into the DS Studio Library.  In this case, its again, the  PtTransporter node.

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Continuing, the preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Geometry.Surface.BSplineSurface.NormalAtPoint.ds,#7-PtTransporter

Again one should make sure that the custom node PtTransporterFor003 has been loaded into the library and file.

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

The “Node to Code” operation as shown above. The  geometry that results from the various code translations is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint#7-Windows Graphic

Geometry.Surface.BSplineSurface.NormalAtPoint#7-Windows Graphic

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

PtTransporter

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

Thanks for looking.

T!M