I want to move, rotate the component of the blocks in dxf file using python. What I am thinking now is re-drawing the components, but I doubt that I cannot draw some arbitrary curves by that method. So, I want to find the way to copy and move the whole blocks in dxf file.
import ezdxf as ezd
import numpy as np
def dxf_load_edge(dxfname):
dxfload = ezd.readfile(dxfname)
dxfms = dxfload.modelspace()
blockref = dxfms.query('LWPOLYLINE')
print(blockref)
points=[]
move_x = 50
move_y = 70
dxf_new = ezd.new()
Please anybody tell me what to code next, or functions that I should use and thank you very much.