AddPolyline

Adds a polyline curve object to the current model.

Syntax

rhinoscriptsyntax.AddPolyline (points, replace_id=None)

rhinoscript.curve.AddPolyline (points, replace_id=None)

Parameters

points

Required.  List.   A list of 3-D points.  Duplicate, consecutive points found in the array will be removed.  The array must contain at least two 3-D points.  If the array contains less than four points, then the first point and the last point must be different.

replace_id

Optional. String or Guid. Identifier of an existing object to replace with the new polyline.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

points = rs.GetPoints(True)

if points: rs.AddPolyline(points)

Also See

IsPolyline

PolylineVertices