lucky9 Posted January 14, 2021 Posted January 14, 2021 Hi, Is there a routine which could help to extend plines to nearest boundary. In my drawing there are several Plines which are not touching the boundary ( not connected to each other ). Based on the given tolerance I want that , all the untouched lines should extends to their nearest line boundaries Here is a before after pic Best Regards lucky9 Quote
Mugna101 Posted January 20, 2021 Posted January 20, 2021 Why wont u use Extend command? Id usually just type "Ex" and hit enter twice so it will select all. next thing is just to click on the lines for it to extend. it will extend the line til its nearest observable boundary Quote
BIGAL Posted January 20, 2021 Posted January 20, 2021 Munga101 9 clicks v's just window objects. On my to look at list. 2021 users is this not now a function of extend ? 1 Quote
tombu Posted January 22, 2021 Posted January 22, 2021 On 1/20/2021 at 5:39 PM, BIGAL said: Munga101 9 clicks v's just window objects. On my to look at list. 2021 users is this not now a function of extend ? Yes, Ex then F (for fence) or pick and drag the cursor. Quote
lucky9 Posted January 22, 2021 Author Posted January 22, 2021 I have a drawing which contains digitized lines (road) from google(KML) they are mostly broken not touching the other lines to make up a proper road. So I needed a way to extend these lines all at ones instead of manually click them to extend. Quote
tombu Posted January 22, 2021 Posted January 22, 2021 Why not add a small drawing of those lines? Have you tried using Pedit with a fuzz distance? Quote
lucky9 Posted February 3, 2021 Author Posted February 3, 2021 Sample file is attached On 1/23/2021 at 1:35 AM, tombu said: Why not add a small drawing of those lines? Have you tried using Pedit with a fuzz distance? Sample.dxf Quote
tombu Posted February 3, 2021 Posted February 3, 2021 2 hours ago, lucky9 said: Sample file is attached Sample.dxf 856.45 kB · 2 downloads Wow! That drawing didn't look anything like your original post. Even with 2016 selecting all before using EXTEND make it pretty easy picking the lines you want extended except two segments at the same angle missing each other could only be connected by moving the endpoint of one line to match the other. I don't see any way this could be coded to do any easier. Quote
BIGAL Posted February 3, 2021 Posted February 3, 2021 I found the opposite a overshoot that should be fixed to. Another but ugly Quote
eldon Posted February 4, 2021 Posted February 4, 2021 On 1/22/2021 at 7:06 PM, lucky9 said: I have a drawing which contains digitized lines (road) from google(KML) they are mostly broken not touching the other lines to make up a proper road. So I needed a way to extend these lines all at ones instead of manually click them to extend. I would say that it would be extremely unwise to have an automatic way of extending lines in a mapping drawing. You do not know what is happening at each junction. It would be safer to inspect each junction. It might take longer, but you would know that the extended lines, where necessary, would make sense. Quote
ronjonp Posted February 4, 2021 Posted February 4, 2021 @eldon Agreed .. which answer is 'correct'? Quote
lucky9 Posted February 5, 2021 Author Posted February 5, 2021 10 hours ago, ronjonp said: @eldon Agreed .. which answer is 'correct'? 4th one, where the line was joined at intersection. Quote
eldon Posted February 5, 2021 Posted February 5, 2021 In the sample dxf posted, there were nearly 200 junctions. Of those, about half needed no further action. But with the other half, some needed to be extended, some needed to be trimmed and others needed the end of the line to be stretched. How can you get a lisp to decide which action to use? This is really a case where lisp cannot give the required solution - unless someone knows better. Quote
lucky9 Posted February 5, 2021 Author Posted February 5, 2021 1 hour ago, eldon said: In the sample dxf posted, there were nearly 200 junctions. Of those, about half needed no further action. But with the other half, some needed to be extended, some needed to be trimmed and others needed the end of the line to be stretched. How can you get a lisp to decide which action to use? This is really a case where lisp cannot give the required solution - unless someone knows better. I guess there is no better way than to do it manually instead , I will process these lines manually Thank you guys for your comments and suggestions. Have a nice day ! Quote
tombu Posted February 5, 2021 Posted February 5, 2021 Civil 3D has a tool for that but AutoCAD does not. https://civilimmersion.typepad.com/civil_immersion/2020/09/creating-higher-value-geometry-using-the-map-cleanup-tools-in-civil-3d.html?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+CivilImmersion+(Civil+Immersion) 1 Quote
BIGAL Posted February 5, 2021 Posted February 5, 2021 Nice tombu. Gave it a try lucky9 you may have to outsource, its pretty quick. Undershoot Modified object(s) :1644 Deleted object(s) :1 Created object(s) :758 1 Quote
lucky9 Posted February 6, 2021 Author Posted February 6, 2021 12 hours ago, tombu said: Civil 3D has a tool for that but AutoCAD does not. https://civilimmersion.typepad.com/civil_immersion/2020/09/creating-higher-value-geometry-using-the-map-cleanup-tools-in-civil-3d.html?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+CivilImmersion+(Civil+Immersion) Wow! Thank you so much for the link, ❤❤ You made my day. Quote
eldon Posted February 6, 2021 Posted February 6, 2021 I looked at the video of the cleanup tools, and it seems to confirm my previous comments. There is no lisp that can do what you want. It appears that you still have to zoom to each junction and set up for the particular cleanup tool every time. Also, I feel that these tools insulate users from knowing how AutoCAD works. I reckon that I can work faster in this particular instance by using command aliases, grips and a nimble mouse. However, if you can afford the money and the time, you might feel that the tools could make your life easier. Do not let me discourage you. Quote
eldon Posted February 6, 2021 Posted February 6, 2021 This is an example of my concerns. Which solution is correct? A, B, C or something else? Which solution would the automatic cleanup tool produce? How would you know which solution unless you inspect the junction individually? Quote
lucky9 Posted February 6, 2021 Author Posted February 6, 2021 1 hour ago, eldon said: This is an example of my concerns. Which solution is correct? A, B, C or something else? Which solution would the automatic cleanup tool produce? How would you know which solution unless you inspect the junction individually? B would be the solution. 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.