minhphuong_humg Posted June 11, 2015 Share Posted June 11, 2015 Hi, everybody. I have a drawing, I want erase all object inside or outside (2 case). Please, help me. Thank you very much. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted June 11, 2015 Share Posted June 11, 2015 That could be done by selecting that boundary object then select all objects within its boundary then make a global selection set , so after that iterate through each entity if it is not the same name with the entity that are inside the first selection , then delete the object . Quote Link to comment Share on other sites More sharing options...
minhphuong_humg Posted June 11, 2015 Author Share Posted June 11, 2015 That could be done by selecting that boundary object then select all objects within its boundary then make a global selection set , so after that iterate through each entity if it is not the same name with the entity that are inside the first selection , then delete the object . Can you describe in more detail? Thank you very much! Quote Link to comment Share on other sites More sharing options...
Tharwat Posted June 11, 2015 Share Posted June 11, 2015 Can you describe in more detail? Thank you very much! I think my description is clear if you are familiar in Lisp programming Quote Link to comment Share on other sites More sharing options...
minhphuong_humg Posted June 11, 2015 Author Share Posted June 11, 2015 I think my description is clear if you are familiar in Lisp programming Ok, thank you Tharwat. I have a drawing autocad and which I draw a line enclosed (rectangle, polygon, or any). I want to choose boundary and then remove all of what is in it. Please see the attached figure: Quote Link to comment Share on other sites More sharing options...
tombu Posted June 11, 2015 Share Posted June 11, 2015 See http://www.cadtutor.net/forum/showthread.php?92739-trim-rectangle-outside-object#14 for lisp with the function BoundaryTrim which will both trim and erase inside a selected boundary. Quote Link to comment Share on other sites More sharing options...
minhphuong_humg Posted June 12, 2015 Author Share Posted June 12, 2015 See http://www.cadtutor.net/forum/showthread.php?92739-trim-rectangle-outside-object#14 for lisp with the function BoundaryTrim which will both trim and erase inside a selected boundary. Thank tombu very much! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 12, 2015 Share Posted June 12, 2015 (edited) Also Cookiecutter.lsp and like Lee I would use (extrim) Edited June 12, 2015 by BIGAL Quote Link to comment Share on other sites More sharing options...
minhphuong_humg Posted June 12, 2015 Author Share Posted June 12, 2015 Also Cookiecutter.lsp nad like Lee I would use (extrim) I used extrim but don't success. Can you guide me? Thank you very much. Quote Link to comment Share on other sites More sharing options...
VVA Posted June 12, 2015 Share Posted June 12, 2015 some more links CookieCutter2 - more fun with ET extrim Inside a polyline SCWP - Select Contour Window PolygonSCCP - Select Contour Crossing Polygon OCD - OutSide Contour Delete sdop2.lsp - Select and Delete objects Outside of closed Polyline Quote Link to comment Share on other sites More sharing options...
KARDOLITO89 Posted October 18, 2018 Share Posted October 18, 2018 PLEASE SHOW THE CODE OF SDOP2.LSP 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.