My target is to get all circles from dxf
file with 3 information like: circumference, X center, Y center
. So far i am able to get circumference. How can i get Y & X
? This is my current code:
import sys
import ezdxf
doc = ezdxf.readfile("File.dxf")
msp = doc.modelspace()
for e in msp:
if e.dxftype() == 'CIRCLE':
dc = 2 * math.pi * e.dxf.radius
print('circumference: ' + str(dc))