i have problem with ezdxf. i want put polyline coords to list. i can do it when i had simple polyline in the dxf. i want separate the polylines coords to multiple list.
simple polyline to coordslist:
import ezdxf
#input file
dwg = ezdxf.readfile(test.dxf)
modelspace = dwg.modelspace()
#polylines from dxf file into
linelist = []
for name, line in enumerate(modelspace.query('LWPOLYLINE'), start=1):
with line.points() as points:
for name, coords in enumerate(points):
linelist.append([str(name), int(coords[0]), int(coords[1])])