MeasurementType
Measurement object types. Identifies the geometric kind of a measurement object. Returned by getMeasurementType() and used to filter measurements in getMeasurementNamesByType(). Available values: - Point: A single 3D point. - Distance: A straight-line distance between two points. - Angle: An angle defined by three points (two rays sharing a vertex). - Diameter: A diameter measurement defined by three points. - Contour: An open or closed contour through a series of points. - Circle: A circle. - Ellipse: An ellipse. - Rectangle: A rectangle. - Box: A 3D box. - Annotation: A text caption (annotation) anchored at a 3D point.
Import
import ScriptingApi as api
# Access the class
# MeasurementType is available via api.MeasurementType
Enumeration Values
Enumeration Type from MeasurementType
| Value | Description |
|---|---|
MeasurementType.Point | Point option |
MeasurementType.Distance | Distance option |
MeasurementType.Angle | Angle option |
MeasurementType.Diameter | Diameter option |
MeasurementType.Contour | Contour option |
MeasurementType.Circle | Circle option |
MeasurementType.Ellipse | Ellipse option |
MeasurementType.Rectangle | Rectangle option |
MeasurementType.Box | Box option |
MeasurementType.Annotation | Annotation option |
Usage Example
import ScriptingApi as api
# Access enumeration values
value = api.MeasurementType.Point