Inherits: CommonShape < DesignItem < ScriptObject

Inherited by: Connection, DesignShape

Shapes are collections of CommonSegment on a Layer.

Properties

NameTypeGet/SetBrief
AreafloatYes/NoThe total area of the shape, in DSUs squared. Assumes the shape is closed and considers cutouts.
ClosedboolYes/NoWhether this shape is closed.
LayerLayerYes/YesNo description provided.
LengthintYes/NoThe total length of all the segments on this shape.
SegmentCountintYes/NoThe number of CommonSegments that compose this shape.
SegmentsArray[CommonSegment]Yes/NoThe CommonSegments that compose this shape.

Property Details

Area

Type: float

The total area of the shape, in DSUs squared. Assumes the shape is closed and considers cutouts.


Closed

Type: bool

Whether this shape is closed.


Layer

Type: Layer


Length

Type: int

The total length of all the segments on this shape.


SegmentCount

Type: int

The number of CommonSegments that compose this shape.


Segments

Type: Array[CommonSegment]

The CommonSegments that compose this shape.