Files
OneCAD-Draft/src/modules/draw
Hakan SevenandClaude Opus 4.8 aca2b952a5 fix(dimension): zero the group-12 insertion point on baked blocks (#181)
A dimension's *D block is baked in absolute WCS, so the DWG group-12
insertion point must be the origin. OCS's dimension commands seeded it
with the text anchor, so a reader that positions the block by that point
(BricsCAD / ODA) drew the dimension shifted by the offset, while OCS —
which renders the block in place — showed it correctly.

Reset base.insertion_point to the origin in bake_dimension_blocks, where
the absolute-WCS block is created. Only dimensions whose block OCS bakes
are touched; blocks preserved from other applications (baseline/continue
dimensions with a legitimate non-zero clone insertion) are left alone.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-08 09:58:09 +03:00
..