#DesignScript LM – Chapter 23, Part II-Geometric Parameterization

Hi Everyone:

This is the second translation from Chapter 23, Geometric Parameterization,  ( pages 67-69) of the DesignScript Language Manual.

The prerequisite references for this chapter can be found at DSLM.  The initial manual translation was made on the Autodesk DesignScript Community Forum and DesignScript.org. Now it can be found at can be found at Chapter 23: Geometric Parameterization  (Note that it can be no longer found on the Autodesk Labs Website, as linked)

Continuing on from the previous post, turning to page 69 and copying pasting the script into the Design Script Editor, one gets a similar view as in shown below.

Chp-23-Geometric Parameterization.ds#2

Chp-23-Geometric Parameterization.ds#2

After the code is run in the Editor, and it’s noted that there aren’t any errors, the resulting Graphic window is pasted image for reference.  Next the script is again copied and inserted into a Design Script Studio (DSS) blank canvas. This results in the single Code Block as shown below.

Chp-23-Geometric Parameterization#a2

Chp-23-Geometric Parameterization#a2

By removing the Commenting out notation, in this case just ” /*” & ” */” the code is activated.

Chp-23-Geometric Parameterization#a2-edited

Chp-23-Geometric Parameterization#a2-edited

This is where an error is encountered, seeing that class and function definitions are not supported, so a work around is going to be required for this translation into nodes.

As the script is replaced with to nodes, a workable conversion is found.

Chp-23-Geometric Parameterization#2

Chp-23-Geometric Parameterization#2

The development of the various variable’s properties take place by identifying each node.

Chp-23-Geometric Parameterization#2a

Chp-23-Geometric Parameterization#2a

The “Node to Code” translation is next.

Chp-23-Geometric Parameterization#2b

Chp-23-Geometric Parameterization#2b

Minor editing is desired as highlighted.

Chp-23-Geometric Parameterization#2b-edited

Chp-23-Geometric Parameterization#2b-edited

The Graphic Window that results from this example is shown below.

Chp-23-Geometric Parameterization#2a-Graphic Window

Chp-23-Geometric Parameterization#2a-Graphic Window

Note that color was introduced for interest and that these files were generated using the Standalone versions of DesignScript. (DSE & DSS)

The files are available to download from the Drop Box links below.

2015_03_25-Chp_23-Geometric Parameterization#a2

2014_03_20-Chp_23-Geometric Parameterization#2

2014_03_20-Chp_23-Geometric Parameterization#2a

2015_03_25-Chp_23-Geometric Parameterization#2b

Thanks for looking.

T!M

 

 

 

 

 

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s