Jump to content

LISP to break all connecting lines [Request]


Organic

Recommended Posts

I was using the lisp found at http://www.cadtutor.net/forum/showthread.php?38582-Splitting-Line&p=256805&viewfull=1#post256805 and it works great for breaking lines that cross each other.

 

However I would also like to break lines that intersect/join with each other.

 

I.e.

 

| | |

----- (where ----- is a single line and I want to break it into 3 lines)

 

i.e. like the letter E, where lines are joined perpendicular to another line, although do not actually cross it (although do intersect it). Is there a lisp around already for this (tried searching although the ones I found didn't do this) or is anyone up to making one?

Link to comment
Share on other sites

Can't quite understand the purpose of such a routine but if one was developed are we to assume that the drawing will always consist entirely of lines? No polylines that would have to be exploded first?

Link to comment
Share on other sites

If you don't mind me asking what purpose does the gap serve and how small/large of a gap would be required between the lines? Is this going to a constant or will the user have control over it?

Link to comment
Share on other sites

No, there is no gap (0). All I mean is the following:

 

I have 4 lines here (_ _ is one continuous line). I simply want to break that 1 continous vertical line into two lines wherever another line joins it (snapped to it).

 

|_|_|

Link to comment
Share on other sites

Oops. Sorry, my mistake.

 

Again, using your example shown above ( |_|_| ), the routine would have to know what side(s) to create the break(s) on? The breaks could occur on horizontal and/or vertical lines depending on the geometry right?

Link to comment
Share on other sites

Doesn't the BreakObject variation in the lisp you linked to already do that?

 

Not as far as I can tell. When I try that one it gives the error "Error - point not on object" (when the lines are certainly connected/snapped).

Link to comment
Share on other sites

I get what you describe when I use the BreakAll option, you have to select all the lines at once though.

 

Sorry if you have already tried all the options in there, just that when I read your question, it sounds me like exactly what I use it for several times a week...

Link to comment
Share on other sites

There is newer version of BrakeObjects2.1.lsp ... Look here...

 

I think that it will do just what you wanted... Check c:BreakWithTouching defined within new version...

 

M.R.

:)

Link to comment
Share on other sites

There is newer version of BrakeObjects2.1.lsp ... Look here...

 

I think that it will do just what you wanted... Check c:BreakWithTouching defined within new version...

 

M.R.

:)

 

Thanks, that updated version works exactly as I needed!

Link to comment
Share on other sites

  • 2 months later...
Can't quite understand the purpose of such a routine but if one was developed are we to assume that the drawing will always consist entirely of lines? No polylines that would have to be exploded first?

 

ArcGIS requires this sort of data to create boundaries. The vertices have to be perfect without any gaps in order for it to create boundaries.

Link to comment
Share on other sites

  • 2 years later...

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...