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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s