Linetype.SetSegment Method

LinetypeSetSegment Method

Sets the length and type of the segment at index.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
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: Boolean
true if the operation was successful; otherwise false.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also