w64bit Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
Dadgad Posted April 29, 2017 Share Posted April 29, 2017 Welcome to CADTutor w64bit. SELECTALL? Quote Link to comment Share on other sites More sharing options...
w64bit Posted April 29, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Dadgad Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
Stefan BMR Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
w64bit Posted April 29, 2017 Author Share Posted April 29, 2017 Let's try other approach. A lisp for selecting all "negative" hatches. Quote Link to comment Share on other sites More sharing options...
w64bit Posted April 29, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
halam Posted April 29, 2017 Share Posted April 29, 2017 Are you able to pinpoint this defined zone? Quote Link to comment Share on other sites More sharing options...
Stefan BMR Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
Dadgad Posted April 30, 2017 Share 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 Link to comment Share on other sites More sharing options...
Grrr Posted April 30, 2017 Share 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 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.