import time import ezdxf doc = ezdxf.new("R2000") msp = doc.modelspace() msp.add_lwpolyline([(10, 10, 1), (0, 0, 0)], format="xyb") doc.saveas(f"lwpolyline2{str(time.time())}.dxf")