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.
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.
By removing the Commenting out notation, in this case just ” /*” & ” */” the code is activated.
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.
The development of the various variable’s properties take place by identifying each node.
The “Node to Code” translation is next.
Minor editing is desired as highlighted.
The Graphic Window that results from this example is shown below.
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.
Thanks for looking.