Hi Everyone:
This translation is from the nineteenth chapter of the DesignScript Language Manual and can be found at DSLM (pages 58-59) and is entitled; Replication Guides. There also is a companion video tutorial entitled, Replication Guides. (#15), which can be found in the DS website’s tutorials.
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 Replication Guides. (Note that it can be not longer be found on the Autodesk Labs Website, as linked)
Continuing on, open the DS Editor and create a new file, lets copy and paste the code from Chapter 19 (pages 58 &59) into the editor. Separate the code by commenting out the “import” statements at each pasted section of code. Run the code in Debug mode (step-in and step-out) in order to generate the graphic windows results in each subsequent page of code. Each graphic result has been pasted along side of the script for reference.
Note that the DS Editor ran code from both pages of the DSL Manual.
Moving on, paste the same script into a blank canvas on DesignScript Studio.
Edited out the commenting out so the script will be activated, but first make sure that the “import” statements are commented out.
After commenting out the import statement the code-block is activated. Developing and breaking out the script into code blocks is shown in the DS Studio canvas in it’s initial translation.
Continuing on with the more detailed and defined translation with the naming of the variables to identify and reference into them to their corresponding nodes.
Then with the naming and identifying complete, the “Node to Code” operation can take place.
We see that a little editing is in order as highlighted above.
The Windows Graphic that is generated from the files is shown below.
Note that colors were added in this translation, to highlight the geometry in the Graphic view window.
Reiterating, this was done on the stand-alone version of DesignScript, rather than as a plugin for AutoCAD. The files are available for downloading from the Drop-Box links below.
2015_02_24-chp19-replication-guides_a1
2013_10_23-chp19-replication-guides_1
2014_02_17-chp19-replication-guides_1a
2015_02_24-chp19-replication-guides_1b
Thanks for looking.
T!M