Creates a line and adds it to the drawing.
objectVariable = object.AddLine(StartPoint, EndPoint)
objectVariable is a Line object;
object is one of the ModelSpace or PaperSpace collection objects or a Block object;
StartPoint is a Point object representing the starting point of the line;
EndPoint is a Point object representing the ending point of the line.
AddLine method example