Siding Hatch Pattern

Siding Hatch Pattern

Anonymous
Not applicable
6,636 Views
7 Replies
Message 1 of 8

Siding Hatch Pattern

Anonymous
Not applicable

I'm trying to create a siding hatch with an alternating 5-7-5-7... reveal. It starts out 5-7-5 but then it jumps to 12 and further out of wack from there. (See screenshot)

 

Here is my source code:

*5_7_reveal, siding
0, 0,0, 0,17, 4,0
0, 0,5, 0,24, 4,0
0, 0,12, 0,29, 4,0

 

What am I missing?

 

 

 

0 Likes
Accepted solutions (1)
6,637 Views
7 Replies
Replies (7)
Message 2 of 8

David_W_Koch
Mentor
Mentor
Accepted solution

@Anonymous 

 

Welcome to the community!

 

Is this what you are trying to achieve?  (Lines separated by alternating distances of 5" and 7".)

2019-10-30_ACA2020_Hatch.png

 

If so, this will do the trick:

*5_7_reveal, siding
0, 0,0, 0,12
0, 0,5, 0,12

There are two sets of horizontal (angle 0) parallel lines, with a 12" spacing between items in each set.  One set of lines starts at 0,0; the other at 0,5, giving the 5-7-5-7... spacing.  I am uncertain what you expected the , 4,0 at the end of your line definitions to do; the sixth and subsequent numbers are used to define dash/dot patterns, but without a negative number to provide a "pen up" segment (gap), you will just get a continuous line.  If a continuous line is the goal, then you can just omit anything after the fifth number.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 8

Anonymous
Not applicable

Thank You!!! I am new to creating hatch patterns and writing code for that matter. I get the base line @ 0,0 and the 5" line at 0,5, - so the 0,12 dictates the repeating pattern? Why is it 0,12 for both lines. I would have thought it would be 0,12 (the original 0,0 line) and 0,17 (the original 0,5 line).

0 Likes
Message 4 of 8

David_W_Koch
Mentor
Mentor

You want lines spaced at alternating amounts of 5" and 7".  The pattern repeats every 12", with two lines in every repeat:  one at +0" and one at +5" (since the first gap is 5").

 

So the first pair of lines starts at 0", with lines at 0" and 5".  The second pair of lines is offset 12" from the first pair, with lines at 12" and 17".  The third pair of lines starts at 24", with lines at 24" and 29".  The fourth pair of lines starts at 36", with lines at 36" and 41".  And so on....

 

If you jump 17" from the second line, you get a line at 24", but you already have a line there from the first line, on its second repeat, so you have two, coincidental lines there.  Then you get a line at 41", but you do not get a line at 29".

 

For parallel line patterns like this, once you have the lines for one repeat defined, the offsets for all of them will be for the total distance of the pattern repeat.  The exception would be if within the overall larger repeat (say at 24"), there is a set of lines that repeats at some even fraction of the overall pattern (say 8").  In those cases, while you could define separate lines and repeat them at the overall repeat, it is more efficient to define one line at the smaller, even fraction repeat (in the hypothetical example here, one line at 8" rather than three lines at 24").

 

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 5 of 8

David_W_Koch
Mentor
Mentor

In case the massive block of text in my previous post caused your brain to seize up, perhaps this image will help.  The red lines represent the lines defined by the line starting at 0,0; the yellow lines represent the lines defined by the line starting at 0,5.  The dimensions show the 12" repeat.

2019-11-01_ACA2020_HatchPatternRepeat.png

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 6 of 8

mikeshick
Collaborator
Collaborator

I made my own hatch pattern, in a searched folder, but it's not viewable on reopening of app.  Any assistance?

 

*T1-11, siding_0.5_10.25
0, 0,0, 0,11
0, 0,10.25, 0,11

Mike Shick
www.medesigns.us
0 Likes
Message 7 of 8

David_W_Koch
Mentor
Mentor

Your pattern code works fine, here.

2021-04-23_ACA2020_SidingHatch_T1-11.png

 

Make sure in your PAT file that you have a return at the end of the last line (in other words, a blank line at the end of the file), and that the file name is T1-11.pat.  I attached the file I made from the text you posted. in a ZIP file, since files with PAT extensions appear to be a problem for this forum.  ("The attachment's t1-11.pat content type (application/octet-stream) does not match its file extension and has been removed.")


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 8 of 8

mikeshick
Collaborator
Collaborator

Thank you, thank you, David.  Always so kind of you to help.

 

That was the answer to the problem.

 

Is there a way to better sort through a large pat library? Or to sort the library alphabetically.  Over the years, I have a number of custom pats, but my library is a little overwhelming. It would be nice if we could put the pat files in categories.

Mike Shick
www.medesigns.us
0 Likes