happyunited Posted June 2, 2010 Share Posted June 2, 2010 I have loads of closed polylines and they have all got a different area. There are hundreds. In the quick select box how would I specify to say select all polylines between a certain area say 100m2 to 500m2? I know to select polylines then area the equal to but what do I put in the box? Thanks Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 2, 2010 Share Posted June 2, 2010 Wouldn't you need "greater than" X and "less than" Y? In other words: a range. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 2, 2010 Share Posted June 2, 2010 Quick one: (defun c:qs ( / ss ) ;; © Lee Mac ~ 02.06.10 (if (setq ss (ssget "_X" '((0 . "LWPOLYLINE")))) ( (lambda ( i / e area ) (while (setq e (ssname ss (setq i (1+ i)))) (setq area (vlax-curve-getArea e)) (or (< 100. area 500.) (ssdel e ss)) ) ) -1 ) ) (sssetfirst nil ss) (princ) ) Quote Link to comment Share on other sites More sharing options...
happyunited Posted June 3, 2010 Author Share Posted June 3, 2010 Quick one: (defun c:qs ( / ss ) ;; © Lee Mac ~ 02.06.10 (if (setq ss (ssget "_X" '((0 . "LWPOLYLINE")))) ( (lambda ( i / e area ) (while (setq e (ssname ss (setq i (1+ i)))) (setq area (vlax-curve-getArea e)) (or (< 100. area 500.) (ssdel e ss)) ) ) -1 ) ) (sssetfirst nil ss) (princ) ) What do I type in the command line to activate that lisp? Thanks for that Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 3, 2010 Share Posted June 3, 2010 Type in what is shown immediately after c: which in this case would be the letters qs. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 3, 2010 Share Posted June 3, 2010 The link in my signature should explain everything. Quote Link to comment Share on other sites More sharing options...
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.