.pat file - custom pattern, cannot get hatch to repeat vertically.

.pat file - custom pattern, cannot get hatch to repeat vertically.

Anonymous
Not applicable
1,385 Views
4 Replies
Message 1 of 5

.pat file - custom pattern, cannot get hatch to repeat vertically.

Anonymous
Not applicable

I wrote a .pat file, and it works pretty well, but the pattern goes off alignment further from the original sample.

 

Here is the generated pattern, as it is supposed to appear from the .pat file:

 

screenshot.1510100179.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This is the reference image of something that I tried to create:

 

 

screenshot.1510100361.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This is what the pattern looks like when extended past the module. I cannot figure out why it is not working, any help would be greatly appreciates. 

 

 

screenshot.1510100267.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

file (also attached)

 

 

*Test51
;%TYPE=MODEL

 

0, 0, 8, 0, 64
0, 0, 12, 0, 64
0, 0, 20, 0, 64
0, 0, 26, 0, 64
0, 0, 34, 0, 64
0, 0, 38, 0, 64
0, 0, 42, 0, 64
0, 0, 50, 0, 64
0, 0, 56, 0, 64
0, 0, 64, 0, 64

 


90, 0, 8, 0, 8, 8, -64
90, 4, 12, 0, 8, 4, -64
90, 0, 20, 0, 8, 8, -64
90, 4, 26, 0, 8, 6, -64
90, 0, 34, 0, 8, 8, -64
90, 4, 38, 0, 8, 4, -64
90, 0, 42, 0, 8, 4, -64
90, 4, 50, 0, 8, 8, -64
90, 0, 56, 0, 8, 6, -64
90, 4, 64, 0, 8, 8, -64

0 Likes
Accepted solutions (1)
1,386 Views
4 Replies
Replies (4)
Message 2 of 5

hugha
Collaborator
Collaborator
Accepted solution

Your vertical repetition is 64 yet your vertical line definitions all have repetition of 64 + visible length.

 

Try this:

 

;-----------------------------------------------------------------------------
;        Written by HatchKitCS                                               
;        HatchKitCS (c)1990-2017 Cadro Pty Ltd                               
;        www.hatchkit.com.au/                                                
;-----------------------------------------------------------------------------
;-Date                                   : 8/11/2017                         
;-Time                                   : 1:10:39 PM                        
;-HatchKitCS Version                     : 3.1.10.2730                       
;-HatchKitCS Output Filetype             : Revit with HatchKit Add-In        
;-----------------------------------------------------------------------------
;%VERSION=3.0
;%UNITS=INCH
*Test51
;%TYPE=MODEL
90,0,0,0,-8,8,-56
90,4,8,0,-8,4,-60
90,0,12,0,-8,8,-56
90,4,20,0,-8,6,-58
90,0,26,0,-8,8,-56
90,4,34,0,-8,4,-60
90,0,38,0,-8,4,-60
90,4,42,0,-8,8,-56
90,0,50,0,-8,6,-56
90,4,56,0,-8,8,-56
0,0,0,0,64
0,0,8,0,64
0,0,12,0,64
0,0,20,0,64
0,0,26,0,64
0,0,34,0,64
0,0,38,0,64
0,0,42,0,64
0,0,50,0,64
0,0,56,0,64

 

 

Some vertical origins have also been adjusted to match their associated horizontal.

 

hope this helps.

Message 3 of 5

Anonymous
Not applicable

Hello Hugha, 

 

Thank you so much. I knew that somehow the vertical repetition was off, but I thought that all of my verticals were repeating at 64 -- but I think I was assuming they were being drawn down instead of up, and I thought the origin offset was being factored into the repetition when it wasn't. 

 

 

Thank you so much! 

 

I caught one of the ones that was still not repeating correctly:

 

 

;-----------------------------------------------------------------------------
; Written by HatchKitCS 
; HatchKitCS (c)1990-2017 Cadro Pty Ltd 
; www.hatchkit.com.au/ 
;-----------------------------------------------------------------------------
;-Date : 8/11/2017 
;-Time : 1:10:39 PM 
;-HatchKitCS Version : 3.1.10.2730 
;-HatchKitCS Output Filetype : Revit with HatchKit Add-In 
;-----------------------------------------------------------------------------
;%VERSION=3.0
;%UNITS=INCH
;%THANKS=hugha
*Stone Varied Contemporary Hatch
;%DESCRIPTION=Smooth, varied horizontal same verticals
;%TYPE=MODEL
90,0,0,0,-8,8,-56
90,4,8,0,-8,4,-60
90,0,12,0,-8,8,-56
90,4,20,0,-8,6,-58
90,0,26,0,-8,8,-56
90,4,34,0,-8,4,-60
90,0,38,0,-8,4,-60
90,4,42,0,-8,8,-56
90,0,50,0,-8,6,-58
90,4,56,0,-8,8,-56
 

0,0,0,0,64
0,0,8,0,64
0,0,12,0,64
0,0,20,0,64
0,0,26,0,64
0,0,34,0,64
0,0,38,0,64
0,0,42,0,64
0,0,50,0,64
0,0,56,0,64

 

 

image.png

0 Likes
Message 4 of 5

Anonymous
Not applicable

Final edit, this loads into revit finally (before I was testing in Rhino):

 

*Stone Varied Contemporary, Stone Varied Contemporary Hatch
;%TYPE=MODEL
90,             0,             0,             0,             -8,             8,             -56
90,             4,             8,             0,             -8,             4,             -60
90,             0,             12,             0,             -8,             8,             -56
90,             4,             20,             0,             -8,             6,             -58
90,             0,             26,             0,             -8,             8,             -56
90,             4,             34,             0,             -8,             4,             -60
90,             0,             38,             0,             -8,             4,             -60
90,             4,             42,             0,             -8,             8,             -56
90,             0,             50,             0,             -8,             6,             -58
90,             4,             56,             0,             -8,             8,             -56
0,             0,             0,             0,             64
0,             0,             8,             0,             64
0,             0,             12,             0,             64
0,             0,             20,             0,             64
0,             0,             26,             0,             64
0,             0,             34,             0,             64
0,             0,             38,             0,             64
0,             0,             42,             0,             64
0,             0,             50,             0,             64
0,             0,             56,             0,             64
0 Likes
Message 5 of 5

hugha
Collaborator
Collaborator

Good work catching that errant vertical.  My bad - I should have double-checked that.