# Lines in Python

This guide provides an overview of a RhinoScriptSytntax Line Geometry in Python.

## Lines

3-D lines, or chords, are represented as zero-based, one-dimensional arrays that contain two elements: the starting 3-D point and the ending 3-D point. A 3-D line can be constructed in a number of different ways. For example:

startPoint = [1.0, 2.0, 3.0]
endPoint = [4.0, 5.0, 6.0]
line1 = [startPoint, endPoint]


To add the line to the current Rhino file, and see it drawn on screen, you can use the AddLine method in RhinoscriptSytnax:

import rhinoscriptsyntax as rs

startPoint = [1.0, 2.0, 3.0]
endPoint = [4.0, 5.0, 6.0]
line1 = [startPoint, endPoint]


Of course you could also send the startPoint and the endPoint directly into the rs.AddLine() method to create the line in Rhino.