Maybe someone here can help me out with this...
I am so tired of having to go through drawings and qselect and blockedit objects that have hatches that are on layer 0 and cant be deleted or easily changed to a different layer so I can change the color to have it print "lighter"
SO...I am trying to create this LISP routine to basically just select all Hatches, Solids and Wipeouts in the drawings and delete them, which works but I need to do this to blocks as well which is where I am running into the problem.
(defun c:shf ()
(wo)
(ht)
(sd)
(delbht)
(princ "\nAll Hatches, Wipeout & Solids have been deleted!")
(princ)
)
(defun wo (/)
(Setq wo (ssget "_x" '((0 . "WIPEOUT"))))
(command "_.erase" wo "")
)
(defun ht (/)
(Setq ht (ssget "_x" '((0 . "HATCH"))))
(command "_.erase" ht "")
)
(defun sd (/)
(Setq sd (ssget "_x" '((0 . "SOLID"))))
(command "_.erase" sd "")
)
(defun delbht ()
(setq Block1 (tblnext "BLOCK" T))
(setq Bname1 (cdr (assoc -2 Block1)))
(Fixh Bname1)
(princ)
);defun
;;-----------------------
(defun Fixh ()
(Setq ht2 (ssget "_x" '((0 . "HATCH"))))
(command "_.erase" ht2 "")
(princ)
);defun
Any help would be greatly appreciated