This is the second Line file, Curve.Line.ByStartPointEndPoint, in a series of four curve- line translations from the DesignScript Editor Sample files.
Pick the highlighted file in he editor (DSE), open it and copy the script, then open (DesignScript Studio) DSS and paste the script into a new canvas. Develop the translation.
Note the sequence of properties that the line node commands as illustrated and shown below.
Execute the “Node to Code” and translate the graph canvas to the script as shown below.
A small portion of the highlighted script is edited as shown.
This makes for a more compact code. The resulting Graphic from Curve.Line.ByStartPointEndPoint is shown below.
The files are available for download from the links below.
Thanks for looking.