
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My experience with lisp is finding code that sort of does what I want, editing and hoping for the best. Thru trial and error, research and a little luck I usually stumble on a workable solution. Today I'm stuck.
For construction drawings I need a number of entities in floor plan cad that client wants stripped from cad before passing it to them. I'm trying to delete all instances of a list of different blocks.
Code below works for single line selecting "pq-*" or "RefQ*" but with both lines nothing is deleted and error at bottom is returned. Hope this is a simple one, what am I missing?
(defun c:del4q ()
(sssetfirst nil (ssget "_x" '((2 . "pq-*"))))(command "_.erase")
(sssetfirst nil (ssget "_x" '((2 . "RefQ*"))))(command "_.erase")
(princ)
)
Command: DEL4Q
_.erase
Select objects: _.erase
*Invalid selection*
Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/Previous/Undo/AUto/SIngle/SUbobject/Object
Thanks in advance.
Solved! Go to Solution.