RhinoScript Editor: Basic scripts not working

I am new to coding and am eventually trying to run scripts that allow different layout pages to have different linetype displays, relevant to specific page sizes.

It works to run scripts from RhinoScript Editor, but as soon as I attempt saving and running a code outside the Editor, this message appears:

  1. How can I successfully write, save, and load scripts?
  2. Is there an easier way in Rhino 5 to add custom linetype to each layout page?

Right now I am working with this forum stream: http://v5.rhino3d.com/forum/topics/2d-printing-plot-styles?commentId=6377196%3AComment%3A71176

Customizing the script to be:
arrStyle(0) = array(20, 20, 20, 0.3, 255, 0, 255)
vs. the provided arrStyle(0) = array(255, 0, 0, 0.99, 0, 0, 0)

Thank-you!

Hi Milo-

I’d start here -
http://wiki.mcneel.com/developer/rhinoscript
http://wiki.mcneel.com/developer/python

-Pascal

If you are doing this:

arrStyle(0) = array(20, 20, 20, 0.3, 255, 0, 255)

Then, prior, you should have done this:

Dim arrStyle(0)

Does this help?

Thanks for your reply- I haven’t had the chance to try this out, but I will let you know how it goes once I get the chance.