AddLine

Adds a line curve to the current model.

Syntax

rhinoscriptsyntax.AddLine (start, end )

rhinoscript.curve.AddLine (start, end )

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

Example

import rhinoscriptsyntax as rs

start = rs.GetPoint("Start of line")

if start:

    end = rs.GetPoint("End of line")

    if end: rs.AddLine(start, end)

Also See

CurveEndPoint

CurveStartPoint

IsLine