MeasurementAPI#
Interface MeasurementAPI
Hierarchy
- MeasurementAPI
Methods
change Measurement
- change
Measurement(measurementID, progress, visible?, name?): void -
Parameters
-
measurementID: number
-
progress: MeasurementProgress
-
Optional
visible: boolean -
Optional
name: string
Returns void
-
create Measurement
- create
Measurement(type, descriptors, name?): number -
Creates a new measurement and returns the ID. If no name is given, the measurement will be automatically named (e.g., “Measurement 23”).
Parameters
-
type: MeasurementType
-
descriptors: MeasurementDescriptor[]
-
Optional
name: string
Returns number
-
get Measurement Data
- get
Measurement Data(measurementID): MeasurementData -
Parameters
-
measurementID: number
The ID of the Measurement.
Returns MeasurementData
The MeasurementData.
-
get Measurements
measure Between
- measure
Between(target0, target1): Promise<BetweenMeasurementResult> Experimental
Measures the distance and if possible the angle between two measurement targets.
ATTENTION This API is experimental and may be changed in the future without notice!
Parameters
-
target0: MeasurementTarget
The first measurement target.
-
target1: MeasurementTarget
The second measurement target.
Returns Promise<BetweenMeasurementResult>
The result of the measurement between the two specified targets.
-
measure Tangent
- measure
Tangent(topology, point): Promise<TangentMeasurementResult> Experimental
Measures the tangent of an edge at the specified point.
ATTENTION This API is experimental and may be changed in the future without notice!
Parameters
-
topology: {
class: TOPOLOGY;
value: TopologyHandle;
}The topological target.
-
class: TOPOLOGY
Describes the MeasurementTargetClass of the target.
-
value: TopologyHandle
Describes the value of the target depending on the specified class.
-
-
point: {
class: POINT;
value: [number, number, number];
}The point target.
-
class: POINT
Describes the MeasurementTargetClass of the target.
-
value: [number, number, number]
Describes the value of the target depending on the specified class.
-
Returns Promise<TangentMeasurementResult>
The result of the tangent measurement.
-
measure Thickness
- measure
Thickness(topology, point): Promise<ThicknessMeasurementResult> Experimental
Measures the thickness of a shape at the specified point.
ATTENTION This API is experimental and may be changed in the future without notice!
Parameters
-
topology: {
class: TOPOLOGY;
value: TopologyHandle;
}The topological target.
-
class: TOPOLOGY
Describes the MeasurementTargetClass of the target.
-
value: TopologyHandle
Describes the value of the target depending on the specified class.
-
-
point: {
class: POINT;
value: [number, number, number];
}The point target.
-
class: POINT
Describes the MeasurementTargetClass of the target.
-
value: [number, number, number]
Describes the value of the target depending on the specified class.
-
Returns Promise<ThicknessMeasurementResult>
The result of the thickness measurement.
-
remove Measurement
request Additional Measurement Data
restore Measurement
- restore
Measurement(data, measurementID?): number -
Parameters
-
data: MeasurementData
The MeasurementData that should be restored.
-
Optional
measurementID: numberThe ID of the restored Measurement.
Returns number
-
These functions allow the creation of Measurements. A Measurement describes the distance between two points in the world.