Extends a non-closed curve object by a line, arc, or smooth extension for a specified distance.
rhinoscriptsyntax.ExtendCurveLength (curve_id, extension_type, side, length)
rhinoscript.curve.ExtendCurveLength (curve_id, extension_type, side, length)
curve_id |
Required. String or Guid. The object's identifier. |
||||||||
extension_type |
Required. Number. Type of extension.
|
||||||||
side |
Required. Number. The size to extent.
|
||||||||
length |
Required. Number. The distance to extend the curve. |
Guid |
The identifier of the extended object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select curve to extend", rs.filter.curve)
if curve:
length = rs.GetReal("Length to extend", 3.0)
if length: rs.ExtendCurveLength( curve, 2, 2, length )