Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Overlapping Closed Polylines

8 REPLIES 8
Reply
Message 1 of 9
j.straughan
1651 Views, 8 Replies

Overlapping Closed Polylines

Hi,

 

I'm trying to find out a way in which I can easily identify any overlapping closed polylines. 

 

I have approximately 250 closed polylines very close to each other but without zooming in on each corner (very time consuming) I can't see if they overlap. 

 

Is there a more efficient way to do this through a command or a lisp tool?

 

Many thanks

8 REPLIES 8
Message 2 of 9
rkmcswain
in reply to: j.straughan

I just tried this routine, it works by identifying the overlapping points.

R.K. McSwain     | CADpanacea | on twitter
Message 3 of 9
Kent1Cooper
in reply to: j.straughan


@j.straughan wrote:

... identify any overlapping closed polylines.  ....


That may depend on what you mean by "overlapping."  Does coinciding count [red, left -- portions of edges overlap], or do you mean only crossing [green, right -- enclosed areas overlap]?

Kent1Cooper_0-1609940324642.png

EDIT:  Or, the variant on the left condition:  a vertex of one touches another [whether at a vertex or along an edge], but with no length of overlap of edges?

Kent1Cooper_0-1609941519215.png

 

 

Kent Cooper, AIA
Message 4 of 9
j.straughan
in reply to: rkmcswain

I tried to use that but couldn't get the lisp to work? I loaded it into AutoCAD but couldn't find out what to type in order to use the lisp? Could you please advise on that?

 

Message 5 of 9
j.straughan
in reply to: Kent1Cooper

It would be mostly intersecting like shown on the right but in some fewer instances the lines may be coinciding like on the left.

Message 6 of 9
Kent1Cooper
in reply to: j.straughan


@j.straughan wrote:

It would be mostly intersecting like shown on the right but in some fewer instances the lines may be coinciding like on the left.


>Here< is something about that.  But it's for selecting two of them.  [You can find other related threads in the Customization Forum with a Search for things like "find overlapping Polylines," some of which (like that one) find touching and/or coinciding edges and some only area overlap.]

 

The linked routine from Lee Mac uses the same basic function to find the intersections, but takes multiple object selection and does the marking of them.  I think you want the variation called "Intersections in Set."  You would need to load the LM:intersectionsinset code there, and the "Test Program" below, and the LM:intersections code at the top of the page.  Then use the "interset" command name defined in the Test Program.

Kent Cooper, AIA
Message 7 of 9
j.straughan
in reply to: Kent1Cooper

Thanks that is very useful.

 

With the Lee Mac one, do I load the three things you mentioned all as lisps and then use interset?

 

Thanks.

Message 8 of 9
rkmcswain
in reply to: j.straughan

@j.straughan  - you will need the first two functions below as a minimum. The last one is an example of their usage.

LM:intersections
LM:intersectionsinset
interset 
R.K. McSwain     | CADpanacea | on twitter
Message 9 of 9

Do you mean overlapping polylines or overlapping segments inside the individual polylines? The SelfIntersect utility (freeware) may help for the latter problem. See:

https://www.cadforum.cz/cadforum_en/self-intersecting-polylines-and-polylines-with-duplicate-vertice...

 

Vladimir Michl, www.cadstudio.cz

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report