Hi Everyone:

This is a one of one **Solid** **Cuboid** file translation. The file* Geometry.Solid.Cuboid.ByLengthWidthHeight**.ds* is located in the DesignScript Editor (**DSE**) **Sample **files.

Geometry.Solid.Cuboid.ByLengthWidthHeight.ds#1

Open the file* Geometry.Solid.Cuboid.ByLengthWidthHeight**.ds* in the **DS E**ditor, the resulting script is shown below.

Geometry.Solid.Cuboid.ByLengthWidthHeight-ds#1

There is a slight spelling error that is being pointed out as highlighted above as well as some properties confusion. The Cuboid is requiring the **“Width, Height and Length”** in the property definition as opposed to** “StartPoint, StartRadius and EndRadius.”** ( A consequence of copying and pasting one would assume).

Open **DS** Studio, and paste the **DSE** script,* Geometry.Solid.Cuboid.ByLengthWidthHeight.ds* into a blank canvas.

Geometry.Solid.Cuboid.ByLengthWidthHeight#a1

After pasting the script and further commenting out the** “(***import(ProGeometry.dll*)” script as highlighted above, one can have the option of running it as a Code Block of script, before the translation to **Nodes** takes place.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1

The preliminary translation looks like the canvas shown above and the developed one below.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1a

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

Geometry.Solid.Cuboid.ByLengthWidthHeight#1b

The geometry that results from the code(s) is shown below. Note that liberty was taken with applying colors to the translation.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1-Graphic Window

The files are available to download from the** DropBox** links below.

Geometry.Solid.Cuboid.ByLengthWidthHeight#1

Geometry.Solid.Cuboid.ByLengthWidthHeight#a1

Geometry.Solid.Cuboid.ByLengthWidthHeight#1a

Geometry.Solid.Cuboid.ByLengthWidthHeight#1b

Thanks for looking.

T!M

### Like this:

Like Loading...