This is the first Line file, Curve.Line.StartPointDirectionLength, in a series of four curve- line translations from the DesignScript Editor Sample files.
Pick the highlighted file, open it and copy the script, then open DSS (DesignScript Studio) and paste the code into the blank canvas. The initial and essential translation will look something like below.
After defining the additional properties the graph Canvas will include the additional node definitions as shown below.
The highlighted properties show the various groupings above. The node to code operation is then executed and the resulting script is shown below.
A little cleanup is conducted to created a more compact script.
The resulting graphic is generated from the files.
The files are available for downloading below.
Thanks for looking.