Message 1 of 5
Delete Blok inside attribute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi every I have arch Plan and thy made hatch inside furniture ,grid and Tags I found lisp Which Delete hatch from all drawings but I need update it to delete hatch only from selected item because I need to keep wall hatch
(defun c:Test (/ doc) (vlax-for bks (vla-get-blocks (setq doc (vla-get-ActiveDocument (vlax-get-acad-object)) ) ) (if (and (eq :vlax-false (vla-get-islayout bks)) (eq :vlax-false (vla-get-isXref bks)) ) (vlax-for obj bks (if (and (wcmatch (vla-get-objectname obj) "AcDbHatch" ) (vlax-write-enabled-p obj) ) (vla-delete obj) ) ) ) ) (vla-regen doc AcAllViewports) (princ) )(vl-load-com)
can any one help with this