Adds a line curve to the current model.
rhinoscriptsyntax.AddLine (start, end )
rhinoscript.curve.AddLine (start, end )
start |
Required. Point3d or list of 3 numbers. The starting point of the line. |
end |
Required. Point3d or list of 3 numbers. The ending point of the line. |
Guid |
The identifier of the new object if successful. |
import rhinoscriptsyntax as rs
start = rs.GetPoint("Start of line")
if start:
end = rs.GetPoint("End of line")
if end: rs.AddLine(start, end)