I am having drawing files in .dxf format. Each files consists of different shapes as shown in below image.
I want to read all the dimensions using Python. I come to know about ezdxf
package. So I was able to load the file in Python environment and got the shapes which are available in drawing using below code, but I don't know how to get dimensions.
Thanks in advance.
import ezdxf as ez
import sys
doc = ez.readfile("Drawing1.dxf")
msp = doc.modelspace()
for i in msp:
print(i)
Output
- LWPOLYLINE(#259)
- CIRCLE(#261)
- LWPOLYLINE(#262)
- ELLIPSE(#264)
- LINE(#265)
- CIRCLE(#266)