RhinoCommon API
LinetypeSetSegment Method |
Sets the length and type of the segment at index.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool SetSegment( int index, double length, bool isSolid )
Public Function SetSegment ( index As Integer, length As Double, isSolid As Boolean ) As Boolean
Parameters
- index
- Type: SystemInt32
Zero based index of the segment. - length
- Type: SystemDouble
The length of the segment to be added in millimeters. - isSolid
- Type: SystemBoolean
If true, the length is interpreted as a line. If false, then the length is interpreted as a space.
Return Value
Type: Booleantrue if the operation was successful; otherwise false.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8