Jump to content

Extend line to touch nearest boundary


lucky9

Recommended Posts

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

extendboundary.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

  • 2 weeks later...
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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ! 

Link to comment
Share on other sites

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

  • Thanks 1
Link to comment
Share on other sites

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

 

 

Which is correct.PNG

Link to comment
Share on other sites

 

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?

 

 

Which is correct.PNG

B would be the solution. 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...