MeasurementData
Measurement data containing name, visibility, lock status, and point coordinates.
Import
import ScriptingApi as api
# Access the class
# MeasurementData is available via api.MeasurementData
Properties
name
Name of the measurement object.
Type: str
visible
Visibility flag.
Type: bool
locked
Lock flag. When locked, the measurement cannot be moved interactively.
Type: bool
points
List of 3D point coordinates [x, y, z]. The number of points depends on the measurement type:
- Point: 1 point (3 values)
- Distance: 2 points (6 values)
- Angle: 3 points (9 values)
- Diameter: 3 points (9 values)
- Contour: N points (N*3 values)
- Circle/Ellipse/Rectangle: 8 corners + 6 sides + 1 center (15x3 values)
- Box: 8 corners + 6 sides + 1 center (15x3 values)
- Annotation: 1 point (3 values)
Type: list