Check for overlapping hatches

Anonymous

Check for overlapping hatches

Anonymous
Not applicable

Hello,

I am working with hatches and I would like to check in a drawing if an hatch is overlapping another.

I have tried the overkill command, but although two hatches may have overlapping areas, the respective lines might not be, and the command becomes useless.

Is there any way to check for this problem? Some command I am not aware of? Or do I have to program in VBA/autolisp?

0 Likes
Reply
Accepted solutions (1)
6,340 Views
15 Replies
Replies (15)

JBBs
Explorer
Explorer

You can set the hatch origin points to be coincident, so the lines do overlap.

 

Overkill still won't get rid of them, though.

0 Likes

Anonymous
Not applicable

Thanks for the reply, but I never want them to coincide, I just want to check in the end of the drawing if there's some overlapping between hatches (and then eliminate them).

0 Likes

ВeekeeCZ
Consultant
Consultant

If just visual control would be enough you can set all hatches to solid with transparency up to 50%.

IMHO any programming solution would be challenging. Have you thought of a method to use?

0 Likes

pendean
Community Legend
Community Legend
change transparency or colors then look for visual cues for overlaps.

0 Likes

vladimir_michl
Advisor
Advisor
Accepted solution

You can use the HatchOverlap freeware utility to detect hatch overlap areas - see https://www.cadforum.cz/cadforum_en/hatchoverlap-check-for-any-overlapping-hatches-in-a-dwg-tip12429

 

hatchoverlap.png

 

Vladimir Michl, www.cadstudio.cz - www.cadforum.cz

 

0 Likes

s.borello
Advisor
Advisor

I don't think there is a one click solution for you... you will have to use your eyes. 

0 Likes

Peter2_1
Collaborator
Collaborator

Hi Vladimir

 

I tried your tool with Map 3D 2023 german and got this result:

 

Punkt liegt direkt auf einem Objekt.
Konnte keine gültige Schraffurumgrenzung finden.
Punkt liegt direkt auf einem Objekt.
Konnte keine gültige Schraffurumgrenzung finden.
Punkt liegt direkt auf einem Objekt.
Fehler: Automatisierungsfehler Objekt wurde gelöscht
Befehl:

 

Any idea for a problem?

AutoCAD Map 3D 2023 German / Oracle
0 Likes

vladimir_michl
Advisor
Advisor

Can you please send me the complaining drawing? Ideally just the simplified part of it which is reporting the problem.

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

0 Likes

Peter2_1
Collaborator
Collaborator

Hi Vladimir

here it is. I don't know the element in detail, but it is reduced to 19 elements where is brings the error.

AutoCAD Map 3D 2023 German / Oracle
0 Likes

vladimir_michl
Advisor
Advisor

? what is "here" ?

 

-vm

0 Likes

Peter2_1
Collaborator
Collaborator

Sorry - attached it now in the post above ..

AutoCAD Map 3D 2023 German / Oracle
0 Likes

vladimir_michl
Advisor
Advisor

Thanks. I have looked at it, done a small update (V1.1) which could help in some cases but this approach will never be fully universal - in some cases (center point on a border) it will always fail.

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

0 Likes

Peter2_1
Collaborator
Collaborator

Thanks, Vladimir.

I'm surprised by the really quick solution.

I just downloaded the new version - to I understand it right that the problem reported before it one of the still failing ones?

 

BTW: For the next update I want to suggest another handling of the "undo-behaviour". Now there are maaaany single steps in "undo" - alone 7 steps for 2 hatches.

AutoCAD Map 3D 2023 German / Oracle
0 Likes

vladimir_michl
Advisor
Advisor

There is now a better version (V1.2) with error handling and Undo.

https://www.cadforum.cz/en/download.asp?file=HatchOverlap

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

0 Likes

Peter2_1
Collaborator
Collaborator

Hi Vladimir

thanks - the undo and the error-management is clearly improved.

But what I don't understand - when does it marks "overlaps"? The attached drawing contains two polylines - when I add hatches, the smaller one is marked as overlapping, but IMHO they are exactly "touching", not overlapping. Does it depend on some settings, some tolerances?

AutoCAD Map 3D 2023 German / Oracle
0 Likes