DSLM-Chapter One Translation -Language Basics

Hi Everyone:

While in the process of translating the DesignScript .ds sample files and learning about the nuances of adequately defining DSS nodes and their variables, it might be worthwhile to revisit the DesignScript Language Manual and the translations to DSS that were made on the various chapters. Visit DesignScript.org or the Autodesk DesignScript Community Forum for the translations.

The first chapter however due to it’s editorial (DSE) nature was not translated into DesignScript Studio (DSS). However, looking thru the DSE sample files one comes across Text, Geometry.TextByCoordinateSystem.ds

2014_04_09-Geometry.TextByCoordinateSystem.ds-location

2014_04_09-Geometry.TextByCoordinateSystem.ds-location

After reviewing the contents, go to Chapter one, Language Basics, page 7 thru 9 and paste the script contents, as it appears (output is the gray highlighted boxed content on the left of the pages), into the DS Editor. When run, it will look like something shown below.

Chapter 1-Language Manual Basics

Chapter 1-Language Manual Basics

While this doesn’t open up the Graphic window, the output is shown in the editor.

Using  bits of the script content were pasted into the DSS canvas,

Chapter # 1-Geometry.Text.ByCoordinateSystem

Chapter # 1-Geometry.Text.ByCoordinateSystem

This brings up the following Graphic shown below.

Chapter#1-Geometry.Text.ByCoordinateSystem-Graphic Window

Chapter#1-Geometry.Text.ByCoordinateSystem-Graphic Window

Now, improvising in the canvas with additional text and at a different location one gets.

Chapter#1-Geometry.Text.ByCoordinateSystem-a

Chapter#1-Geometry.Text.ByCoordinateSystem-a

Not agreeing that “less it’s a bore”, the graphic window is shown below.

Chapter#1-Geometry.Text.ByCoordinateSystem-a_graphic Window

Chapter#1-Geometry.Text.ByCoordinateSystem-a_graphic Window

 

Love to see text capabilities developed more into DesignScript Studio. The files are available for download at the links below.

chapter#1Language-Basics-text.ds

Chapter#1-Geometry.Text.ByCoordinateSystem.bin

Chapter#1-Geometry.Text.ByCoordinateSystem-a.bin

Thanks for Looking

T!M

 

 

 

Advertisements

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