#DesignScript LM – Chapter 19 Translation – Replication Guides

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.

Chapter 19 Replication Guides-ds#1

Chapter 19 Replication Guides-ds#1

Moving on, paste the same script into a blank canvas on DesignScript Studio.

Chapter 19 Replication Guides#a1

Chapter 19 Replication Guides#a1

Edited out the commenting out so the script will be activated, but first make sure that the “import” statements are commented out.

Chapter 19 Replication Guides#a1-edited

Chapter 19 Replication Guides#a1-edited

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.

Chapter 19 Replication Guides#1

Chapter 19 Replication Guides#1

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.

Chapter 19 Replication Guides#1a

Chapter 19 Replication Guides#1a

Then with the naming and identifying complete,  the “Node to Code” operation can take place.

Chapter 19 Replication Guides#1b

Chapter 19 Replication Guides#1b

We see that a little editing is in order as highlighted above.

Chapter 19 Replication Guides#1b-edited

Chapter 19 Replication Guides#1b-edited

The Windows Graphic that is generated from the files is shown below.

chp19-replication-guides_1a-Graphic Window

chp19-replication-guides_1a-Graphic Window

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

 

 

 

 

 

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