Select all or convert *X### An
I need a way to select all the *X anonymous blocks (Hatches) and either convert to regular blocks, back into a hatch or just delete them.QSelect will only do it one at a time, wildcard doesn't seem to work, Filter doesn't appear to recognize anonymous blocks, either.
I have a lot to do, one at a time , while not impossible for one drawing, I have several .dwg I would like to do.
Thanks in advance.
Here is a drawing with one *X in it.
Anonymous Hatch.dwg Here's some quick code to select all blocks in the active layout/viewport with block names starting "*X":
(defun c:myblksel nil (sssetfirst nil (ssget "_X" (list '(0 . "INSERT") '(2 . "`*X*") (if (= 1 (getvar 'cvport)) (cons 410 (getvar 'ctab)) '(410 . "Model") ) ) ) ) (princ))The code could of course be modified to convert/explode/delete if necessary.
Lee Thanks!!
Works a treat, I was surprised Filter didn't handle these.
Would have been nice to convert them, but I just mainly wanted them gone and they aren't really necessary for my current work.
Once again, I appreciate this. No worries Steve, you're welcome! Try to use U2B or U2BM command from here (download bgtools2.32.zip from #1)
页:
[1]