Linear dimensions with horizontal, vertical, and aligned dimension lines.
Horizontal linear dimensions describe the distance between two points along the OX axis. Vertical linear dimensions describe the distance between two points along the OY axis. Aligned linear dimensions describe the distance between two points along the line connecting them.
firstReferencePoint and secondReferencePoint refer to points on the drawing geometry that are being measured. Two parallel extension lines come out of these points. dimensionLinePoint defines the dimension line and can be any point on it.
new LinearDimension(
firstReferencePoint?,secondReferencePoint?,dimensionLinePoint?,measurementValue?,rotation?):LinearDimension
Creates a linear dimension.
The provided points are copied.
If measurementValue is provided, it is assigned to the dimension.
Point2d = ...
First reference point on the drawing geometry that is being measured.
Point2d = ...
Second reference point on the drawing geometry that is being measured.
Point2d = ...
Point defining the dimension line. It can be any point on that line.
number
Actual measurement value.
RotationType = RotationType.HORIZONTAL
Rotation of the dimension, which determines the type of the linear dimension.
LinearDimension
arrowheadPlacement:
ArrowheadPlacementType=ArrowheadPlacementType.INTERNAL
Arrowhead placement.
The default value is ArrowheadPlacementType.INTERNAL.
AngularDimension.arrowheadPlacement
firstArrowType:
ArrowType=ArrowType.CLOSED_FILLED
First arrow type.
The default value is ArrowType.CLOSED_FILLED.
AngularDimension.firstArrowType
isTextAlignedHorizontally:
boolean=false
Indicates whether the measurement text is aligned horizontally.
AngularDimension.isTextAlignedHorizontally
measurementValue:
number=0
Actual measurement value.
rotation:
RotationType=RotationType.HORIZONTAL
Rotation of the dimension, which determines the type of the linear dimension.
secondArrowType:
ArrowType=ArrowType.CLOSED_FILLED
Second arrow type.
The default value is ArrowType.CLOSED_FILLED.
AngularDimension.secondArrowType
text:
Text
Dimension text.
get dimensionLinePoint():
Point2d
Point defining the dimension line.
set dimensionLinePoint(
point):void
Sets the point defining the dimension line.
The coordinates are copied from the provided point.
Dimension line point.
void
get firstReferencePoint():
Point2d
First reference point on the drawing geometry that is being measured.
set firstReferencePoint(
point):void
Sets the first reference point on the drawing geometry that is being measured.
The coordinates are copied from the provided point.
First reference point.
void
get id():
bigint
Returns the unique identifier of the object.
bigint
get secondReferencePoint():
Point2d
Second reference point on the drawing geometry that is being measured.
set secondReferencePoint(
point):void
Sets the second reference point on the drawing geometry that is being measured.
The coordinates are copied from the provided point.
Second reference point.
void
get uuid():
`${string}-${string}-${string}-${string}-${string}`|null
UUID of the drawing element.
The value is null if no UUID is assigned.
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets the UUID of the drawing element.
`${string}-${string}-${string}-${string}-${string}` | null
UUID to assign to the drawing element.
void
accept(
visitor):void
Accepts an element visitor.
Element visitor to accept.
void