fixes by applying the Dimension.dxf.insert attribute
The insert attribute of the DIMENSION entity acts like the insert
attribute of the INSERT entity and translates the block content of
the associated anonymous BLOCK.
@@ -486,7 +486,6 @@ class Auditor:
if not len(defpoints):
# no defpoints found, invalid DIMENSION entity
return
-
markers = list(get_defpoint_markers(block))
if not len(markers):
# no defpoint markers found, no checks or repair possible
@@ -558,12 +557,13 @@ DEFPOINT_NAMES = (
def get_wcs_defpoints(dim: "Dimension") -> Iterable[Vec3]:
+ insert = dim.dxf.insert
ocs = dim.ocs()
to_wcs = ocs.to_wcs
dxf = dim.dxf
for name in DEFPOINT_NAMES:
if dxf.hasattr(name):
- yield to_wcs(dxf.get(name))
+ yield to_wcs(dxf.get(name) - insert)
def get_defpoint_markers(block: "GenericLayoutType") -> Iterable[Vec3]:
