dynamic custom hatch

dynamic custom hatch

nazihmahmoud32
Explorer Explorer
335 Views
11 Replies
Message 2 of 12

dynamic custom hatch

nazihmahmoud32
Explorer
Explorer

i need to make a custom hatch to be dynamic without superhatch tool so i could change origin point scale ....etc. i need it to be like this pattern how is this ? 

Screenshot 2025-06-10 114853.png

0 Likes
Accepted solutions (1)
336 Views
11 Replies
Replies (11)
Message 1 of 12

nazihmahmoud32
Explorer
Explorer

hello, i need to make a cutom hatch like thispattern without superhatch to be dynamic 

0 Likes
Message 3 of 12

David_W_Koch
Mentor
Mentor

I hope this is the repeat you were expecting:

2025-06-10_15-00-27.PNG

 

One way to achieve that:

*Pattern01, Based on 1.2 module
0,   0,0,      0,1.2
90,  0,0,      0,-1.2,  1.2,-1.2
90,  0.4,0,    0,-1.2,  1.2,-1.2
90,  1.0,0,    0,-1.2,  1.2,-1.2
90,  0.2,1.2,  0,-1.2,  1.2,-1.2
90,  0.6,1.2,  0,-1.2,  1.2,-1.2
90,  0.8,1.2,  0,-1.2,  1.2,-1.2

 

The attached ZIP file contains the PAT file that generated the pattern in the image.  If "Pattern01" is not the name you would like for this pattern, you can change it.  You have to change both the name of the file (excluding the .pat extension) and the name on the first line in the file between the asterisk and the comma.  You can change the "Based on 1.2 module" text to be a more meaningful description, also.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 4 of 12

nazihmahmoud32
Explorer
Explorer

I am so grateful for your help.

If i need to add a space of 0.002 between each rectangle in x and y direction as each rectangle represents tiles could you help with this case ?

0 Likes
Message 5 of 12

David_W_Koch
Mentor
Mentor

That can be done, but will require more time than I have at the moment.  I will make a note to come back to this later and respond if no one else does before then.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 6 of 12

nazihmahmoud32
Explorer
Explorer

Thanks, i will be waiting 

0 Likes
Message 7 of 12

Sea-Haven
Mentor
Mentor

Google is your friend have a look at this, make pat files - Page 2 - AutoLISP, Visual LISP & DCL - AutoCAD Forums

 Got close can see need another go. Will let you try that, pattern has 0.002 gaps.

SeaHaven_0-1749605708217.png

 

*BOND002,bond002
90,0.50124896,1,0,1,0.49958368,-0.50041632
180,0.58451291,1,0,1,0.08326395,-0.91673605
270,0.58451291,0.50041632,0,1,0.49958368,-0.50041632
0,0.50124896,0.50041632,0,1,0.08326395,-0.91673605
90,0.25062448,1,0,1,0.49958368,-0.50041632
180,0.50041632,1,0,1,0.24979184,-0.75020816
270,0.50041632,0.50041632,0,1,0.49958368,-0.50041632
0,0.25062448,0.50041632,0,1,0.24979184,-0.75020816
90,0.08326395,1,0,1,0.49958368,-0.50041632
180,0.24979184,1,0,1,0.16652789,-0.83347211
270,0.24979184,0.50041632,0,1,0.49958368,-0.50041632
0,0.08326395,0.50041632,0,1,0.16652789,-0.83347211
90,0.41798501,0.49958368,0,1,0.49958368,-0.50041632
180,0.50124896,0.49958368,0,1,0.08326395,-0.91673605
270,0.50124896,0,0,1,0.49958368,-0.50041632
0,0.41798501,0,0,1,0.08326395,-0.91673605
90,0.16736053,0.49958368,0,1,0.49958368,-0.50041632
180,0.41715237,0.49958368,0,1,0.24979184,-0.75020816
270,0.41715237,0,0,1,0.49958368,-0.50041632
0,0.16736053,0,0,1,0.24979184,-0.75020816
90,0,0.49958368,0,1,0.49958368,-0.50041632
180,0.16652789,0.49958368,0,1,0.16652789,-0.83347211
270,0.16652789,0,0,1,0.49958368,-0.50041632
0,0,0,0,1,0.16652789,-0.83347211

 

0 Likes
Message 8 of 12

mari.shimode
Community Manager
Community Manager

Hi @nazihmahmoud32, welcome to Autodesk Community! Would you please tell us what Autodesk software you're using so we can move your question to the most appropriate forum? Thank you.



Mari Shimode
Community Manager
0 Likes
Message 9 of 12

nazihmahmoud32
Explorer
Explorer
Autocad 2024
0 Likes
Message 10 of 12

David_W_Koch
Mentor
Mentor

This has a 0.02 gap.  (I misremembered the number.)  I can do 0.002, but that seems excessively small, and when printed, the linewidths will likely overlap.

 

2025-06-11_09-17-23.PNG

 

*Tile01, Based on 1.2 module
0,   0.01,0.01,  0,2.4,  0.38,-0.02,0.58,-0.02,0.18,-0.02
0,   0.01,1.19,  0,2.4,  0.38,-0.02,0.58,-0.02,0.18,-0.02
0,   0.21,1.21,  0,2.4,  0.38,-0.02,0.18,-0.02,0.58,-0.02
0,   0.21,2.39,  0,2.4,  0.38,-0.02,0.18,-0.02,0.58,-0.02
90,  0.01,0.01,  0,-1.2,  1.18,-1.22
90,  0.39,0.01,  0,-1.2,  1.18,-1.22
90,  0.41,0.01,  0,-1.2,  1.18,-1.22
90,  0.99,0.01,  0,-1.2,  1.18,-1.22
90,  1.01,0.01,  0,-1.2,  1.18,-1.22
90,  1.19,0.01,  0,-1.2,  1.18,-1.22
90,  0.21,1.21,  0,-1.2,  1.18,-1.22
90,  0.59,1.21,  0,-1.2,  1.18,-1.22
90,  0.61,1.21,  0,-1.2,  1.18,-1.22
90,  0.79,1.21,  0,-1.2,  1.18,-1.22
90,  0.81,1.21,  0,-1.2,  1.18,-1.22
90,  1.39,1.21,  0,-1.2,  1.18,-1.22

 

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 11 of 12

David_W_Koch
Mentor
Mentor
Accepted solution

For a 0.002 gap:

 

*Tile02, Based on 1.2 module
0,   0.001,0.001,  0,2.4,  0.398,-0.002,0.598,-0.002,0.198,-0.002
0,   0.001,1.199,  0,2.4,  0.398,-0.002,0.598,-0.002,0.198,-0.002
0,   0.201,1.201,  0,2.4,  0.398,-0.002,0.198,-0.002,0.598,-0.002
0,   0.201,2.399,  0,2.4,  0.398,-0.002,0.198,-0.002,0.598,-0.002
90,  0.001,0.001,  0,-1.2,  1.198,-1.202
90,  0.399,0.001,  0,-1.2,  1.198,-1.202
90,  0.401,0.001,  0,-1.2,  1.198,-1.202
90,  0.999,0.001,  0,-1.2,  1.198,-1.202
90,  1.001,0.001,  0,-1.2,  1.198,-1.202
90,  1.199,0.001,  0,-1.2,  1.198,-1.202
90,  0.201,1.201,  0,-1.2,  1.198,-1.202
90,  0.599,1.201,  0,-1.2,  1.198,-1.202
90,  0.601,1.201,  0,-1.2,  1.198,-1.202
90,  0.799,1.201,  0,-1.2,  1.198,-1.202
90,  0.801,1.201,  0,-1.2,  1.198,-1.202
90,  1.399,1.201,  0,-1.2,  1.198,-1.202

David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 12 of 12

nazihmahmoud32
Explorer
Explorer

Thank you very much. that is what i need exactly.

0 Likes