Inherits: CommonShape < DesignItem < ScriptObject
Inherited by: Connection, DesignShape
Shapes are collections of CommonSegment on a Layer.
Properties
| Name | Type | Get/Set | Brief |
|---|---|---|---|
| Area | float | Yes/No | The total area of the shape, in DSUs squared. Assumes the shape is closed and considers cutouts. |
| Closed | bool | Yes/No | Whether this shape is closed. |
| Layer | Layer | Yes/Yes | No description provided. |
| Length | int | Yes/No | The total length of all the segments on this shape. |
| SegmentCount | int | Yes/No | The number of CommonSegments that compose this shape. |
| Segments | Array[CommonSegment] | Yes/No | The 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.