Export Radial Dim to Dxf

This commit is contained in:
wandererfan
2018-05-21 10:53:53 -04:00
parent 65f67d8ff8
commit 8115c8e80b
5 changed files with 86 additions and 22 deletions

View File

@@ -651,6 +651,16 @@ private:
end1 = end1 + parentPos;
end2 = end2 + parentPos;
writer.exportAngularDim(textLocn, lineLocn, end1, end2, apex, dimText);
}else if (dvd->Type.isValue("Radius")) {
Base::Vector3d textLocn(dvd->X.getValue() + parentX, dvd->Y.getValue() + parentY, 0.0);
arcPoints pts = dvd->getArcPoints();
Base::Vector3d center = pts.center;
center.y = -center.y;
Base::Vector3d arcPoint = pts.midArc;
arcPoint.y = -arcPoint.y;
center = center + parentPos;
arcPoint = arcPoint + parentPos;
writer.exportRadialDim(center, textLocn, arcPoint, dimText);
}
}
}