Message 1 of 6
Dimension Placement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It's a long shot but....does anyone know the formula AutoCAD uses to position the text for an AcDbAlignedDimension?
It has the following characteristics:
- It is positioned halfway along the line it is dimensioning, with a perpendicular offset.
- From 0° to 180° it is to the left of the line (start -> end)
- From 0° to -180° it is to the right of the line (start -> end)
- The offset is visually constant, independent of the current zoom state.
I can see how to calculate the position (1, 2 and 3) using a perpendicular vector that can be negated based on the angle - but how is the offset done? I assumed it would be related to DIMSCALE - but maybe has some relation to the viewport size too, in order to stay visually the same size?