shakuhachi Posted May 16, 2011 Posted May 16, 2011 How can I get the coordinates of the window when I zoom entents the drawing. It's just like the bounding box written by Lee. I'm layiso-ing some layers and explodes them. When I used "explode" and use all, it explode everything even the layoff layers. Is there a way to do this without exploding the everything. Just the layers which are turn on. If not I'll just have to pick the coordinates of the zoom extents window and explodes the blocks. Thanks. Quote
Lee Mac Posted May 16, 2011 Posted May 16, 2011 For the drawing extents, look into the EXTMIN and EXTMAX System Variables Quote
Lee Mac Posted May 16, 2011 Posted May 16, 2011 I would approach the selection in the following way: (defun SelectAllOn ( / x l ) (while (setq x (tblnext "LAYER" (null x))) (if (minusp (cdr (assoc 62 x))) (setq l (cons "," (cons (cdr (assoc 2 x)) l))) ) ) (ssget "_X" (list '(-4 . "<NOT") (cons 8 (apply 'strcat (cdr l))) '(-4 . "NOT>"))) ) The above will return a SelectionSet of all objects whose layer is On. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.