Einheit der neuen Kabeldatei ist in mm. doc.header = 4 ist mm, 5 centimeter, 6 Meter
This commit is contained in:
@@ -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
|
""" creates a new dxf file with a polyline inside which is created by the given json file
|
||||||
"""
|
"""
|
||||||
doc = ezdxf.new('R2018', setup=True)
|
doc = ezdxf.new('R2018', setup=True)
|
||||||
|
doc.header['$INSUNITS'] = 4 # Millimeter
|
||||||
draw_cables(plines, doc)
|
draw_cables(plines, doc)
|
||||||
draw_sensors(plines, doc)
|
draw_sensors(plines, doc)
|
||||||
draw_subdists(plines, doc)
|
draw_subdists(plines, doc)
|
||||||
|
|||||||
Reference in New Issue
Block a user