No I don't.
With help from IA I have made the code below that works when you have the dxf file open, but I don't know how to make it work in automatic, looking for all the dxf files in a directory, open them, apply the lisp, save close them.
Thank you.
(defun c:modifyDrawing (/ ss ent lay rad)
(setq ss (ssget "X" '((8 . "yellow"))))
(if ss
(progn
(command "_.erase" ss "")
(princ "\nDeleted all entities in layer 'yellow'.")
)
(princ "\nNo entities found in layer 'yellow'.")
)
(setq ss (ssget "X" '((0 . "CIRCLE"))))
(if ss
(progn
(repeat (setq i (sslength ss))
(setq ent (ssname ss (setq i (1- i))))
(setq rad (cdr (assoc 40 (entget ent))))
(if (and (>= rad 3.9) (<= rad 4.1)) ; check for radius within tolerance
(entmod (subst (cons 40 3) (assoc 40 (entget ent)) (entget ent)))
)
)
(princ "\nChanged all 8mm holes to 6mm.")
)
(princ "\nNo 8mm holes found.")
)
(princ)
)