Making a Custom Hatch Pattern

Making a Custom Hatch Pattern

S_S_SS
Advocate Advocate
15,764 Views
26 Replies
Message 1 of 27

Making a Custom Hatch Pattern

S_S_SS
Advocate
Advocate

Hi There ,
I want to custom hatch without super hatch to make it adjustable ....
i have curves and it is difficult to make it can someone help me to make that  with hatch code ....

1.JPG

 thanks in advance

 
 

0 Likes
Accepted solutions (1)
15,765 Views
26 Replies
Replies (26)
Message 2 of 27

steven-g
Mentor
Mentor

A hatch can only create straight lines, so you need to break your curves down into straight line segments, but then the hard part is that a hatch pattern doesn't work by joining these lines to make it look like a curve, each individual segment just forms a dot dash pattern and the trick is finding where your individual segments will repeat.

I always use this site as a reference. And it is well worth the effort to take the time and grasp the concept of creating your own patterns. One simple method is to choose an existing hatch (a very simple one) and try and reverse engineer it, making changes to it to see how it works.

Message 3 of 27

hugha
Collaborator
Collaborator

Open a DXF within HatchKit.

 

hth,

Hugh Adamson

www.hatchkit.com.au

 

Message 4 of 27

S_S_SS
Advocate
Advocate

thanks sir ,
I can neglect curves and consider it as straight lines like this picture can you help me to make hatch code of it ? 

1.JPG

0 Likes
Message 5 of 27

S_S_SS
Advocate
Advocate

Thanks sir ,
but it make big markers 
i can neglect curves like this picture can you help me to make code of it ? 

1.JPG

0 Likes
Message 6 of 27

hugha
Collaborator
Collaborator

Try this. The spacing is arbitrary and shows how the generated pattern is not confined to a rectangular arrangement.

Message 7 of 27

steven-g
Mentor
Mentor

Error in .pat file. You need to rename the file to Entities.pat 😁.

@S_S_SS the file from @hugha works well but highlights that you need to decide how that pattern repeats when creating a hatch pattern. 

Message 8 of 27

hugha
Collaborator
Collaborator
Of course. Thank you for correcting that common mistake.


Message 9 of 27

S_S_SS
Advocate
Advocate

thanks sir .. 
I'm very grateful to you 

 

 

0 Likes
Message 10 of 27

S_S_SS
Advocate
Advocate

Thanks sir..
I'm  very grateful t o you  

0 Likes
Message 11 of 27

S_S_SS
Advocate
Advocate

excuse me sir,
the file you have sent make a solid hatch and i tried more and more to justify scale of it and it can't be right 
i tried to learn hatch pattern coding and it can't make my shape i want 

can you show me the problem with me ?? 

0 Likes
Message 12 of 27

Kent1Cooper
Consultant
Consultant

@S_S_SS wrote:

....
the file you have sent make a solid hatch and i tried more and more to justify scale of it and it can't be right .... 


If you're talking about @hugha 's pattern attached to Message 6, it works for me [after making the file and pattern names the same]:

Kent1Cooper_0-1618315614942.png

You would need to say more about the relationship of the repetition of patterns -- in an orthogonal grid rather than staggered?  how close together?  etc.

 

Your drawing doesn't use that pattern, but one called TIMBER, which is apparently not just a renaming of this pattern.  And it's not coming out solid as described.  What is the TIMBER Hatch in the drawing for, and how does it relate to what you want to do?

 

Another thought:  have you tried SUPERHATCH?  With that, you could have your curves.

Kent Cooper, AIA
Message 13 of 27

hugha
Collaborator
Collaborator

OP  states SUPERHATCH is not wanted, otherwise all good questions to ask.  

 

Hugh Adamson.

 

 

Message 14 of 27

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:
....You would need to say more about the relationship of the repetition of patterns -- in an orthogonal grid rather than staggered?  how close together?  etc. ....

Hatch patterns need to have some kind of repetition.  Just in orthogonal columns and/or rows arrangement, and with the extents of your original image pieces essentially touching, there are lots of possibilities:

Kent1Cooper_0-1618332278633.png

We really can't do anything more for you without some direction on these questions.

Kent Cooper, AIA
Message 15 of 27

S_S_SS
Advocate
Advocate

 

thanks for help sir..
I really want hatch to be or tho repetition to be appropriate to rectangle and my shape appear on it... 
HATCH appeared solid yesterday but problem was in cad that time ....


 

 

0 Likes
Message 16 of 27

S_S_SS
Advocate
Advocate

you make hatch from my first shape that with curves sir ?? 

0 Likes
Message 17 of 27

Kent1Cooper
Consultant
Consultant

@S_S_SS wrote:

you make hatch from my first shape that with curves sir ?? 


No, I only copied your curves around in a few different kinds of patterns to show some possibilities for the nature of the repetition.  You would need to show us what kind of repetition pattern you want.  Whatever that is, the real Hatch definition would need to be made of straight lines, though the Arcs could be approximated in several line segments each [they don't need to be straightened all the way to only single lines].

Kent Cooper, AIA
Message 18 of 27

hugha
Collaborator
Collaborator
Accepted solution

Please try the attached pattern derived directly from your DWG (via DXF).

 

Problem: Attachment file is not being uploaded unfortunately. Will revisit later.

 

direct copy:

 

;-------------------------------------------------------------------------------
; Written by HatchKit 4 Standard Edition
; HatchKit 4 Standard Edition (c)1990-2021 Cadro Pty Ltd
; www.hatchkit.com.au/
;-------------------------------------------------------------------------------
;-Date : 2021/04/15
;-Time : 14:15:28
;-HatchKit 4 Version : 4.1.3.3013
;-HatchKit 4 Output Filetype : AutoCAD
;-------------------------------------------------------------------------------
*Timber,DXF Entity Section
35.2727944814,78.954,79.327,-342.047063496,4.93687175,18.463,-1824.41564488
38.3251462221,64.47,67.877,-3593.0198759,1.76592894,18.463,-5133.53109869
41.3774979628,50.616,55.673,-8641.95783633,.95571779,18.463,-9501.1416604
44.4298497036,37.432,42.749,-2629.88344459,3.29071697,18.463,-2746.30091409
47.4822014443,24.954,29.141,2229.13781266,3.84857952,18.463,-2345.54051737
49.108264692,51.699,78.901,1150.73198284,1.92038131,23.625,-4714.00469098
50.534553185,13.219,14.888,1628.50252239,1.57760827,18.463,-5748.52977874
52.1713570857,37.209,60.241,13347.4009238,.651714037,23.625,-13936.5707554
53.5869049258,2.2597,.02964,478.917012863,2.60981124,18.463,-3467.63415575
55.2344494795,23.738,40.834,345.693615872,11.0347596,23.625,-800.865598324
58.2975418732,11.323,20.734,5911.32985548,1.27018977,23.625,-7139.12796943
61.360634267,0,0,989.6222288,5.1566354,23.625,-1740.71449304
89.7219498815,84.975,10.151,96.7576642525,.516629782,14.746,-17595.6509415
94.1986939443,85.047,24.896,-3880.62729239,1.7693602,14.746,-5127.2571043
98.6754380071,83.967,39.603,-3131.77842611,1.8226313,14.746,-4976.96866322
103.15218207,81.743,54.18,-2085.61689427,3.6628192,14.746,-2469.1482362
107.628926133,78.388,68.539,-4669.03981661,1.8290634,14.746,-4959.41465231
112.105670196,73.922,82.593,-1252.67790176,1.5838157,14.746,-5729.64434681
116.505761863,76.735,3.2658,-215.140272294,2.2738957,14.54,-3986.54731738
120.654317683,70.246,16.277,-2585.64225363,1.97300327,14.54,-4596.73240219
124.802873504,62.833,28.786,-824.490131773,.8771163,14.54,-10358.1500319
128.951429324,54.534,40.725,-8830.16609782,.9499693,14.54,-9562.66945788
133.099985144,45.394,52.032,-3443.06587809,2.542803,14.54,-3563.42252009
137.248540965,35.459,62.649,4991.63131361,1.4503006,14.54,-6258.68054041
141.397096785,24.782,72.519,4810.73712908,1.5434398,14.54,-5880.1218393
145.545652605,13.419,81.59,209.80941588,26.59607,14.54,-327.542689344

 

hth,

Hugh Adamson

 

Message 19 of 27

S_S_SS
Advocate
Advocate

I Want it orthogonal column or row sir 

0 Likes
Message 20 of 27

S_S_SS
Advocate
Advocate

 

 

 

Thanks for your help 

this is exactly what i needed 



0 Likes