w64bit Posted April 29, 2017 Posted April 29, 2017 Is there any way to select by lisp distant objects, without user intervention. Maybe by the larger coordinates in all 4 quadrants? Thanks Quote
w64bit Posted April 29, 2017 Author Posted April 29, 2017 I have "negative" hatches in many DWG files, located far away from the drawing and I want to delete them (not manually). Quote
Dadgad Posted April 29, 2017 Posted April 29, 2017 I don't see how you would be able to do this without any user input. At the very least I should think you would need to define the extents for all objects which you do not wish to delete. Quote
Stefan BMR Posted April 29, 2017 Posted April 29, 2017 A simple way is to select all with Ctrl+A. Then press Shift and deselect everything on the screen. The distant object should remain selected and you can Erase them. Quote
w64bit Posted April 29, 2017 Author Posted April 29, 2017 Let's try other approach. A lisp for selecting all "negative" hatches. Quote
w64bit Posted April 29, 2017 Author Posted April 29, 2017 negative = hatches which cannot be seen due to large scale it can be a lisp for selecting all outside a defined zone. Quote
Stefan BMR Posted April 29, 2017 Posted April 29, 2017 Let's try other approach.A lisp for selecting all "negative" hatches. We can try, but if I write it, it would be exact the same approach as I described. So if my suggestion works, then the lisp would work. Did you try it? Quote
Dadgad Posted April 30, 2017 Posted April 30, 2017 A simple way is to select all with Ctrl+A. Then press Shift and deselect everything on the screen.The distant object should remain selected and you can Erase them. That is exactly how I would do it too, Stefan. Quote
Grrr Posted April 30, 2017 Posted April 30, 2017 What about prompting the user to input a range of hatch scale values to be avoided, so the fault won't be in your code: _$ (<= 1 2 3) T _$ (<= 1 0 3) nil _$ (<= 1 4 3) nil 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.