line.set_style
Changes the style (line.style_*).
line.set_style(id: line, style: string)
Parameters
idline: The line's handle (from line.new); na or a deleted line does nothing.stylestring: line.style_solid, style_dashed, style_dotted, style_arrow_left, style_arrow_right or style_arrow_both; another text stops the script with a runtime error.
Example
l.set_style(line.style_dashed)