sergiu_ciuhnenco Posted October 15, 2021 Share Posted October 15, 2021 can not find a lisp for deleting all the straights polylines . I think is posible in 2 ways , to find all polyline that contains only 3 verticle, or to select all and deselect the polylines that contains arc. Thanks in advance !!! Test.dwg Quote Link to comment Share on other sites More sharing options...
sergiu_ciuhnenco Posted October 15, 2021 Author Share Posted October 15, 2021 (ssget "_X" '((0 . "*POLYLINE") (-4 . "<") (90 . 3))) this is how I found to select all polylines less than 3 vertex Quote Link to comment Share on other sites More sharing options...
devitg Posted October 15, 2021 Share Posted October 15, 2021 (command "_erase" (ssget "_X" '((0 . "*POLYLINE") (-4 . "<") (90 . 3))) "") 1 Quote Link to comment Share on other sites More sharing options...
devitg Posted October 15, 2021 Share Posted October 15, 2021 no straight polys.dwg Quote Link to comment Share on other sites More sharing options...
Steven P Posted October 15, 2021 Share Posted October 15, 2021 So this will delete polylines with 2 points, straight be default, but not one with more points that are in a straight line. I think you have to entget each polyline (via ssget), and examine if any has a value for code 42, curve. and discard them, of if you want just a straight line I think you would have to work out the angle between adjacent pairs of points, if they are all the same it is a straight line Quote Link to comment Share on other sites More sharing options...
devitg Posted October 15, 2021 Share Posted October 15, 2021 As sergiu_ciuhnenco state the SSGET filter by less than 3 vertex , it seem to be he knows that it is sufficient. Quote Link to comment Share on other sites More sharing options...
sergiu_ciuhnenco Posted October 16, 2021 Author Share Posted October 16, 2021 Thanks " devitg ", like you mentioned is sufficient for me that you write !!! accepted like solution ! Thanks one more time ! Very receptive community !!! 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.