diff --git a/src/Add-on/ACAD/Entity2DxfEntity.ts b/src/Add-on/ACAD/Entity2DxfEntity.ts index 13e56b3b4..eadd0ac1b 100644 --- a/src/Add-on/ACAD/Entity2DxfEntity.ts +++ b/src/Add-on/ACAD/Entity2DxfEntity.ts @@ -146,6 +146,10 @@ export function Conver2DxfEntity(e: Entity, dxf: DxfWriter, blkName?: string) else if (e instanceof LineAngularDimension) { option.extrusion = e.Normal; + + let mtx = MakeMatrix4FromNormal(e.Normal);//任意轴坐标系 + let mtxInv = new Matrix4().getInverse(mtx); + return new AngularDimLines( { start: e.L1StartPoint, @@ -155,7 +159,7 @@ export function Conver2DxfEntity(e: Entity, dxf: DxfWriter, blkName?: string) start: e.L2StartPoint, end: e.L2EndPoint }, - e.DimPoint, + e.DimPoint.applyMatrix4(mtxInv), option ); }