Adds a polyline curve object to the current model.
rhinoscriptsyntax.AddPolyline (points, replace_id=None)
rhinoscript.curve.AddPolyline (points, replace_id=None)
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. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints(True)
if points: rs.AddPolyline(points)