vlsf1980 Posted May 18, 2009 Posted May 18, 2009 Hi, I have an array of small boxes (1250 x 1250) which I want to make a hole in the middle of the array. I'm having a problem to select object that is in circular area so that I can delete those object inside the circle. Attached is picture of what I'm trying to make (not in scale). As the array is quite big, it will take forever for me to individually delete it. Hope someone can suggest me a way to do this. Many thanks!!! Quote
Ringis Posted May 18, 2009 Posted May 18, 2009 Hello!! I have a solution for you, but It is a Lisp routine that you have to add. I dont know how into AutoCad you are, but it is easy to do. Second thing is that the Lisp is from another forum and I dont know if I´m allowed to post the link in here! Maybe anyone of the moderators can answer that, otherwise I can mail you the link to that site. //Tobias Quote
GE13579 Posted May 18, 2009 Posted May 18, 2009 Posting links to other sites is allowed. You can also copy and paste the Lisp and give credit to the author here if you like... There is a quotation button when replying in which you can add Lisp routines. Quote
Ringis Posted May 18, 2009 Posted May 18, 2009 Ok, thank you GE for your info! I found this at Cadforum powered by Xanadu http://www.cadforum.cz/cadforum_en/qaID.asp?tip=5697 You have to run Appload and add the attached lisp file into the Startup Suite. Then reopen your file and use WPS command and select your circle or polyline, everything inside the circle will be selected. (see the link for more info how to use the command.) Hopefully this is what you hae been looking for, vlfs1980! //Tobias wps.lsp Quote
Tiger Posted May 18, 2009 Posted May 18, 2009 pst. if you want to know more about what Lisps are and how they work - check this FAQ out Quote
vlsf1980 Posted May 19, 2009 Author Posted May 19, 2009 Thanks guys! and I was just about to give up hope and delete it one by one... I will give it a try. Quote
vlsf1980 Posted May 19, 2009 Author Posted May 19, 2009 Thanks for the solution. I tested it out on a smaller array and it seems to work but I'm stuck at the next step which is to delete the selection. After I selected those object in the circle, it prompt me to select object again. I tried a few ways to delete it but it doesn't seems to work. 1. WPS and select circle> del (nothing happen) 2. WPS and select circle> Edit > Clear (nothing happen) 2. ERASE > WPS and select circle (it delete off my circle only) 3. WPS and select circle> right click (selection gone) 4. WPS and select circle> ERASE (ask me to select object again with previous selection gone) Not sure what I have done wrong. Quote
Ringis Posted May 19, 2009 Posted May 19, 2009 After you have done your selection with WPS command press enter. Run ERASE command and when asked "Select objects" type P (for previous) // Tobias Quote
Tiger Posted May 19, 2009 Posted May 19, 2009 Could be that the variable PICKFIRST is set to 0 - change to 1 and see if that helps. Quote
vlsf1980 Posted May 19, 2009 Author Posted May 19, 2009 Hi Ringis, I tried your command but it still didn't erase it. Command: wps Pick a circle or polyline: Select objects: p 1660 found (1660 duplicate) Select objects: erase *Invalid selection* Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/CLass Select objects: I also tried out _erase and enter both, both unselect the items The pickfirst is already in 1 Is this cause my the version of AutoCAD? Quote
Ringis Posted May 19, 2009 Posted May 19, 2009 Hello! We try one more time. command: wps Pick a circle or polyline: pick your circle Select objects: ENTER command: ERASE select objects: P 15 found select objects: ENTER It works fine on my version of AutoCad //Tobias Quote
vlsf1980 Posted May 19, 2009 Author Posted May 19, 2009 Thank you thank you thank you!!! It finally work! Thank you Ringis, Tiger and GE13579! Really appreciated the help. 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.