Abdulellah Posted December 25, 2020 Share Posted December 25, 2020 (edited) greeting everyone , is it possible to find a way to clean the intersections of the lines according to the instructions shown in the figure, provided that they remain as they are single lines Edited December 25, 2020 by Abdulellah Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted December 25, 2020 Share Posted December 25, 2020 See if this code can be of some help... https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/polyline-2-countour-lines/m-p/8824932/highlight/true#M385912 2 Quote Link to comment Share on other sites More sharing options...
Abdulellah Posted December 25, 2020 Author Share Posted December 25, 2020 Thank you very much Marco, I'm not sure, I want the line to remain the same as polyline has a thickness, as an independent element, with the intersections and corners resolved. Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted December 25, 2020 Share Posted December 25, 2020 (edited) Post a sample DWG with before and after details... Note that I provided you the link that may be used as a good starting point - you need to code further if you want improvements... Also AFAIK it is in some situations buggy, but you'll have to test it in your cases... Edited December 25, 2020 by marko_ribar Quote Link to comment Share on other sites More sharing options...
Abdulellah Posted December 25, 2020 Author Share Posted December 25, 2020 I salute your activity and the spirit of help that you have, I do not want to burden you, I think that it is a tiring task, be satisfied with the link that you published, but can you develop the code to add the option to convert a region into a closed polyline, provided that it is followed by a decision of yes or no before converting, Quote Link to comment Share on other sites More sharing options...
Stefan BMR Posted December 25, 2020 Share Posted December 25, 2020 3 hours ago, Abdulellah said: greeting everyone , is it possible to find a way to clean the intersections of the lines according to the instructions shown in the figure, provided that they remain as they are single lines No chance to keep them as they were originally, single lines. Your last image can only be made of closed polylines, following the outline of the thick polylines. For that, using only autocad commands, try this trick: - WMFOUT the polylines with global width = 0.2 - WMFIN - Explode, Region, Union, Explode (twice if necessary), Pedit-Multiple-Join You might need to scale all to original size Quote Link to comment Share on other sites More sharing options...
Abdulellah Posted December 25, 2020 Author Share Posted December 25, 2020 (edited) thanks but #windows meta file "WMF" it is tedious methood . Edited December 25, 2020 by Abdulellah Quote Link to comment Share on other sites More sharing options...
Stefan BMR Posted December 25, 2020 Share Posted December 25, 2020 (edited) You know that you can do them all at once, right? But if you are forced to make them one at the time, it is tedious. Edited December 25, 2020 by Stefan BMR Quote Link to comment Share on other sites More sharing options...
BIGAL Posted December 25, 2020 Share Posted December 25, 2020 Another way is using bpoly to make a pline outline so long as the shape is closed it can be lines plines etc . You draw a box around the objects then bpoly. Quote Link to comment Share on other sites More sharing options...
Abdulellah Posted December 26, 2020 Author Share Posted December 26, 2020 thanks Mr\ begal ? Suppose the outer shape surrounding the lines inside, which are supposed to have thickness, how can this matter reach them Quote Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted December 26, 2020 Share Posted December 26, 2020 Why was I late... Polyline Outline (Advanced) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted December 26, 2020 Share Posted December 26, 2020 Jonathan your right the master Lee just does it so well. Quote Link to comment Share on other sites More sharing options...
Abdulellah Posted December 27, 2020 Author Share Posted December 27, 2020 thanks for all . . . marko 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.