From 2d0f44fbf36ffb4dc5d180925f5156e36ba5a60b Mon Sep 17 00:00:00 2001 From: mistangl Date: Wed, 23 Jul 2025 17:21:32 +0200 Subject: [PATCH] Einheit der neuen Kabeldatei ist in mm. doc.header = 4 ist mm, 5 centimeter, 6 Meter --- lib/drawdxf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/drawdxf.py b/lib/drawdxf.py index a623a8b..c28ea4b 100644 --- a/lib/drawdxf.py +++ b/lib/drawdxf.py @@ -78,6 +78,7 @@ def new_dxf(plines, out_path): """ creates a new dxf file with a polyline inside which is created by the given json file """ doc = ezdxf.new('R2018', setup=True) + doc.header['$INSUNITS'] = 4 # Millimeter draw_cables(plines, doc) draw_sensors(plines, doc) draw_subdists(plines, doc)