How do I code this hatch?

How do I code this hatch?

dhumbertXE4R3
Explorer Explorer
3,732 Views
11 Replies
Message 1 of 12

How do I code this hatch?

dhumbertXE4R3
Explorer
Explorer

Hi everyone, I am tired of drawing individual lines and hatching in between them for this pattern.  Does anyone know how to code this to create this pattern?  This is basically a 1.5" wide board over a stucco finish that I use AR-SAND to fill in between.  I have the code for the boards, but cannot figure out how to add the AR-SAND to the code without it filling the boards as well.

 

dhumbertXE4R3_3-1606921676139.png

 

 

Here's the code for the boards:

dhumbertXE4R3_1-1606921559077.png

 

 

Thanks!

3,733 Views
11 Replies
Replies (11)
Message 2 of 12

randyspear6624
Collaborator
Collaborator

A dynamic block might be morer efficient for the purposes of others working with it too.

0 Likes
Message 3 of 12

Kent1Cooper
Consultant
Consultant

If you can bring yourself to lose one of the advantages of a Hatch pattern, you could EXPLODE the batten pattern, so its elements become the Lines you would otherwise have to draw, and then do the sand Hatching.

Kent Cooper, AIA
0 Likes
Message 4 of 12

dhumbertXE4R3
Explorer
Explorer

Randy, would a DB allow for an irregular border?

0 Likes
Message 5 of 12

dhumbertXE4R3
Explorer
Explorer

Kent, that is a good alternative idea if we cant get the hatch to work as I am envisioning.

0 Likes
Message 6 of 12

hugha
Collaborator
Collaborator

Try the attached pattern derived from a HatchKit Stretcher Brick QuickFill template set to create a randomly dotted 14.5" wide brick @ 16" centres,  edited to an indefinite height. 

 

hth,

Hugh Adamson

www.hatchkit.com.au

 

 

0 Likes
Message 7 of 12

Kent1Cooper
Consultant
Consultant

Here's something that uses AR-SAND's lineset angles and dot spacings as a starting point, massaged to leave the batten strips empty and further to look reasonably random.  The not-quite-as-randomness of the look is because in order to not "bleed" into the batten strips, everything needs to have offsets that result in vertical alignments.  I had to do four or five lines at each angle to do "groups" of dots, because of the limit of 12 specifications per line.

StuccoBatten16.PNG

 

*StuccoBatten16, stucco random dots with 1.5" un-dotted vertical battens @ 16"
37.5, 1.5,0, 1.123,1.46352209, 0,-1.52,0,-1.7,0,-16.94755862
37.5, 5.25,0, 1.123,1.46352209, 0,-1.52,0,-1.7,0,-16.94755862
37.5, 9,0, 1.123,1.46352209, 0,-1.52,0,-1.7,0,-16.94755862
37.5, 12.75,0, 1.123,1.46352209, 0,-1.52,0,-18.64755862
7.5, 1.75,.25, 0.33795196,2.567, 0,-.82,0,-1.37,0,-13.94806337
7.5, 5,0, 0.33795196,2.567, 0,-.82,0,-1.37,0,-13.94806337
7.5, 8.25,-.25, 0.33795196,2.567, 0,-.82,0,-1.37,0,-13.94806337
7.5, 11.5,-.5, 0.33795196,2.567, 0,-.82,0,-1.37,0,-13.94806337
7.5, 14.75,-.75, 0.33795196,2.567, 0,-16.13806337
-32.5, 1.5,.5, -1.0690039,1.678, 0,-.5,0,-1.8,0,-16.62102476
-32.5, 4.75,.25, -1.0690039,1.678, 0,-.5,0,-1.8,0,-16.62102476
-32.5, 8,0, -1.0690039,1.678, 0,-.5,0,-1.8,0,-16.62102476
-32.5, 11.25,-.25, -1.0690039,1.678, 0,-.5,0,-1.8,0,-16.62102476
-32.5, 14.5,-.5, -1.0690039,1.678, 0,-.5,0,-18.42102476
-42.5, 1.15,.75, -2.45393488,2.678, 0,-.25,0,-1.18,0,-20.27146728
-42.5, 4.4,.5, -2.45393488,2.678, 0,-.25,0,-1.18,0,-20.27146728
-42.5, 7.65,.25, -2.45393488,2.678, 0,-.25,0,-1.18,0,-20.27146728
-42.5, 10.9,0, -2.45393488,2.678, 0,-.25,0,-1.18,0,-20.27146728
-42.5, 14.15,-.25, -2.45393488,2.678, 0,-.25,0,-21.45146728
90, .75,0, 0,16
90, -.75,0, 0,16

 

If you save it in a file by copy/paste, rather than using the attached one, remember to include the blank line at the end.

Kent Cooper, AIA
0 Likes
Message 8 of 12

dhumbertXE4R3
Explorer
Explorer

These are some great suggestions, thanks everyone!

0 Likes
Message 9 of 12

randyspear6624
Collaborator
Collaborator

Yes, that is one of the benefits to using dynamic blocks. I started putting one together but had difficulty using the dynamic array with the geometric constraints. Take a look at my screenshot, I think you'd need to replicate the batten/hatch (with the the constraints shown) to use as lookup/visibility objects. A little daunting if you've never used dynamic blocks but worth the exercise to learn.

 

I prefer not to create custom linetypes and hatches if I can.

 

The DB shown would do any trapezoid or triangular shape, you'd need to insert the block twice for anything more complex.

0 Likes
Message 10 of 12

hsarchitype1
Enthusiast
Enthusiast

Hate to admit it but I am a 72 year old architect, self-taught AutoCAD user and still learning. I have spent a number of hours trying to create this code and yours worked. By studying your code I expect I will understand why it worked instead of what I saw on all the other forum posts.

 

My thanks,

Harry

0 Likes
Message 11 of 12

keishapillay7
Community Visitor
Community Visitor

Hi I want to create a pat file/ code for a lotus flower hatch. Can anyone assist me with the code in notepad.

Screenshot (2).png

0 Likes
Message 12 of 12

Kent1Cooper
Consultant
Consultant

If you want actual curvature, investigate SUPERHATCH.  Ordinary Hatch patterns can only be made up of straight-line pieces, so your curves would need to have kinks.  The smaller the pieces and the greater the number of them, the closer the appearance to actual curvature, but also the more complex the definition.

Just as an example of approximating curvature with line segments, try any of the CirclesTriGrid... patterns in the file attached >here<.  [Ignore the image -- download the file.]  The "circles" are 24-gons.  If something with that degree of kinkyness looks "circular" enough for your use, that would give a direction for defining your pattern, but it would be a very long definition.  Greater allowable kinkyness would simplify the pattern; closer approximation to real curves would complicate and enlarge it.

Kent Cooper, AIA
0 Likes