Hatch merge/split,

Hatch merge/split,

JamaL9722060
Collaborator Collaborator
33,400 Views
24 Replies
Message 1 of 25

Hatch merge/split,

JamaL9722060
Collaborator
Collaborator

Hatch merge/split,

 

I got a lisp file that does merge two existing hatching into one.

 

  • But the issue is that in case of overlapping hatches the code does merge the hatches BUT it subtracts the overlapping area of the two hatches!

What I wanted is to merge them and to keep the overlapping area as a part of the result

 

  • I couldn’t find any lisp file that split an existing hatch based on multiple existing lines

 

 

Thank you

 

Best

 

Jamal

---------------------------
Jamal Numan
0 Likes
Accepted solutions (1)
33,401 Views
24 Replies
Replies (24)
Message 21 of 25

hmsilva
Mentor
Mentor

You're welcome, Jamal

It is just a demo...

 

Henrique

EESignature

0 Likes
Message 22 of 25

Automohan
Advocate
Advocate
Hello Sir; I try your above code on my dwg but it not works for me, pls. help me as shown in the Image I need to trim the hatch inside polyline many thanks Automohan
"Save Energy"
Did you find this reply helpful? If so please use the Accept as Solution
0 Likes
Message 23 of 25

JamaL9722060
Collaborator
Collaborator

I couldn’t figure out why the HatchSplit.lsp file fails to split the hatch in the attached file.

 

What could be the issue here?

 

The dwg and lisp files are attached

 

 

Clip_420.jpgClip_421.jpg

---------------------------
Jamal Numan
0 Likes
Message 24 of 25

diagodose2009
Collaborator
Collaborator

Why, after changing the color/s of multiple hatches, the function mergeHatch does not work?

220418175624_idx0008.jpg

 

Command: q2
Select objects: Specify opposite corner: 7 found

ColorCalc[1.yes/0.no]=1
Current active settings:  Color Layer Ltype Ltscale Lineweight Thickness 
PlotStyle Dim Text Hatch Polyline Viewport Table Material Shadow display 
Multileader
Point-of-Areas.dic?
EndT

 

 

0 Likes
Message 25 of 25

yasmindomanais
Community Visitor
Community Visitor

This is really a big help. Thank you so much for this .lsp

0 Likes