Skip to main content

MeasurementType

Other

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

ValueDescription
MeasurementType.PointPoint option
MeasurementType.DistanceDistance option
MeasurementType.AngleAngle option
MeasurementType.DiameterDiameter option
MeasurementType.ContourContour option
MeasurementType.CircleCircle option
MeasurementType.EllipseEllipse option
MeasurementType.RectangleRectangle option
MeasurementType.BoxBox option
MeasurementType.AnnotationAnnotation option

Usage Example​

import ScriptingApi as api

# Access enumeration values
value = api.MeasurementType.Point

See Also​