g777o Posted April 10, 2015 Posted April 10, 2015 Hello, I'm looking for a way that I can erase any line work underneath a selected poly line. Does any such lisp routine exist? I am getting a lot of search results on erasing duplicates, but this is not a duplicate situation. Many Thanks Quote
marko_ribar Posted April 10, 2015 Posted April 10, 2015 If you are working in WCS or UCS in plane of WCS, you can use (trans) function in combination with (vlax-curve-getclosestpointtoprojection) to obtain points on each entity/curve in selection set of them... If X and Y coordinates match to those obtained by picking your reference polyline with (ssget "_+.:E:S") like example shown here : http://www.cadtutor.net/forum/showthread.php?91871-Is-there-a-way-get-coordinates-at-the-pick-point-when-selecting-objects-with-ssget&p=#7 , then you can process (entdel ent) if ent/=reference polyline... HTH, M.R. Quote
ReMark Posted April 10, 2015 Posted April 10, 2015 Have you tried using the Overkill command first? Quote
g777o Posted April 10, 2015 Author Posted April 10, 2015 Unfortunately the boundary poly line and is not in World UCS and is also not always orthogonal. Overkill cleans up around half of the lines, so I am having to manually delete the rest. Quote
marko_ribar Posted April 10, 2015 Posted April 10, 2015 So, you are telling that entities overlap each other - they are not underneath like you firstly stated... Maybe, try this code : http://www.cadtutor.net/forum/showthread.php?83657-I-need-overkill-and-ncopy-!please-help-me!/page4&p=#34 M.R. 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.