Linetype

class rhino3dm.Linetype
Linetype()

Linetype constructor

Name

str: The name of this linetype.

Index
PatternLength

float: Total length of one repeat of the pattern.

SegmentCount

int: Number of segments in the pattern.

Border
ByLayer
ByParent
Center
Continuous
DashDot
Dashed
Dots
Hidden
GetSegment(index)

Gets the segment information at a index.

Parameters:

index (int) – Zero based index of the segment.

Return type:

(void, float, bool)

SetSegment(index, length, isSolid)

Sets the length and type of the segment at index.

Parameters:
  • index (int) – Zero based index of the segment.

  • length (float) – The length of the segment to be added in millimeters.

  • isSolid (bool) – If true, the length is interpreted as a line. If false, then the length is interpreted as a space.

Returns:

True if the operation was successful; otherwise false.

Return type:

bool

AppendSegment(length, isSolid)

Adds a segment to the pattern.

Parameters:
  • length (float) – The length of the segment to be added.

  • isSolid (bool) – If true, the length is interpreted as a line. If false, then the length is interpreted as a space.

Returns:

Index of the added segment.

Return type:

int

RemoveSegment(index)

Removes a segment in the linetype.

Parameters:

index (int) – Zero based index of the segment to remove.

Returns:

True if the segment index was removed.

Return type:

bool

ClearPattern()

[todo] add documentation