Einheit der neuen Kabeldatei ist in mm. doc.header = 4 ist mm, 5 centimeter, 6 Meter

This commit is contained in:
2025-07-23 17:21:32 +02:00
parent 55da6645c6
commit 2d0f44fbf3
+1
View File
@@ -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)