Tag Archives: PatchSurface

#DesignScript – Geometry.Surface.PatchSurface.FromCurve#1- Code to Node to Code

 

 Hi Everyone:

This is a one of one DesignScript PatchSurface translations, from the Surface category of the DS Editor (DSE) Samples.

Geometry.Surface.PatchSurface.FromCurve-ds#1

Geometry.Surface.PatchSurface.FromCurve-ds#1

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

Geometry.Surface.PatchSurface.FromCurve,ds#1

Geometry.Surface.PatchSurface.FromCurve,ds#1

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

Geometry.Surface.PatchSurface.FromCurve#1b

Geometry.Surface.PatchSurface.FromCurve#1b

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

Geometry.Surface.PatchSurface.FromCurve#1b-edited

Geometry.Surface.PatchSurface.FromCurve#1b-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.PatchSurface.FromCurve#1

Geometry.Surface.PatchSurface.FromCurve#1

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

Geometry.Surface.PatchSurface.FromCurve#1a

Geometry.Surface.PatchSurface.FromCurve#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.PatchSurface.FromCurve#1b

Geometry.Surface.PatchSurface.FromCurve#1b

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

Geometry.Surface.PatchSurface.FromCurve#1b-edited

Geometry.Surface.PatchSurface.FromCurve#1b-edited

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

Geometry.Surface.PatchSurface.FromCurve#1-Graphic Window

Geometry.Surface.PatchSurface.FromCurve#1-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.PatchSurface.FromCurve#a1

Geometry.Surface.PatchSurface.FromCurve#1

Geometry.Surface.PatchSurface.FromCurve#1a

Geometry.Surface.PatchSurface.FromCurve#1b

Thanks for looking.

T!M

Advertisements

DesignScript Curve Translation,Geometry.Curve.CreatePatchSurface#13– Code to Node to Code

 

Hi Everyone:

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

Geometry.Curve.CreatePatchSurface.ds#13

Geometry.Curve.CreatePatchSurface.ds#13

Good time to mention that this translation was done with the Stand-Alone version of DesignScript, so it is NOT a plugin for AutoCAD.

Open the file CreatePatchSurface.ds in the DSE, copy and run DSS to paste it into the resulting blank canvas. Note the highlighted script in the initial translation below.

Geometry.Curve.CreatePatchSurface#13

Geometry.Curve.CreatePatchSurface#13

The “ import “ProtoGeometry. dll” “, will prevent the script from running, while “ /* ” and “// ” are measures that will ignore the script.” //will ignore the specific line its in front of and “ /*—-” */ “ will ignore the block of script it’s encompassing. This is being mentioned because having two versions of DesignScript running, both DSE and DSS can cause problems. (i.e. crashing)

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

Geometry.Curve.CreatePatchSurface#13a

Geometry.Curve.CreatePatchSurface#13a

Note that shown above the highlighted text has been edited to eliminate the commenting out symbols “/*—*/”. Next is the translation back to code as shown below.

Geometry.Curve.CreatePatchSurface#13b

Geometry.Curve.CreatePatchSurface#13b

A little editing is done.

Geometry.Curve.CreatePatchSurface#13b

Geometry.Curve.CreatePatchSurface#13b

The resulting Graphic from the files is shown below.

Geometry.Curve.CreatePatchSurface#13-Graphic Window

Geometry.Curve.CreatePatchSurface#13-Graphic Window

The translations are available for download from the links below

Geometry.Curve.CreatePatchSurface#13

Geometry.Curve.CreatePatchSurface#13a

Geometry.Curve.CreatePatchSurface#13b

Thanks for looking.

T!M