Revit Custom Hatch Definition

Revit Custom Hatch Definition

Anonymous
Not applicable
1,362 Views
5 Replies
Message 1 of 6

Revit Custom Hatch Definition

Anonymous
Not applicable

I'm having trouble defining a custom model hatch pattern for Revit 2017. What am I doing wrong?

Here's what I have:

 

;%UNITS=INCHES
*Slate Roof Tile 1, Slate Roof Tile - 8"x8" - 2"x4" Bevel
;%TYPE=MODEL
090, 0,4, 8,4, 4,-12
000, 2,0, 4,8, 4,-4
116.56505118, 2,0, .89442719,7.15541753, 4.47213596,-4.47213596
63.43494882, 6,0, .89442719,7.15541753, 4.47213596,-4.47213596

Here's how it should look:Here's how it should look - drawn in AutoCAD.Here's how it should look - drawn in AutoCAD.Here's where I'm getting the numbers in the definition.Here's where I'm getting the numbers in the definition.Here's what is showing in Revit with the above definition.Here's what is showing in Revit with the above definition.

 

 

0 Likes
Accepted solutions (1)
1,363 Views
5 Replies
Replies (5)
Message 2 of 6

Sahay_R
Mentor
Mentor

Try using an add-in. HatchKit is a great one. I hear that PyRevit performs a similar function.

I would also reorganize the lines of data in your pattern - start with the vertical lines, then Angle1, then Angle2, finally finishing with the horizontal lines

Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 3 of 6

Anonymous
Not applicable

@Sahay_R

Thanks for the addin suggestion. I plan to use Hatchkit or something similar in the future, but I prefer to understand what the computer is doing behind the scenes before I rely on it. I've corrected one error in my definition which has nearly fixed the pattern, but one of the angled lines is still wrong and I cannot figure out why.

 

 

;%UNITS=INCHES
*Slate Roof Tile 1, Dunbar Roof Tile - 8"x8" - 2"x4" Bevel
;%TYPE=MODEL
090, 0,4, 8,4, 4,-12
63.43494882, 6,0, 5.36656315,7.15541753, 4.47213596,-4.47213596
116.56505118, 2,0, 5.36656315,7.15541753, 4.47213596,-4.47213596
000, 2,0, 4,8, 4,-4

I have changed the x-delta value for lines 2 and 3 to what it should be for the on-axis translation of the pattern from one line to the next. As you can see, the hatch should be symmetrical over the line x=4, but somehow it is not. Why?

 

Angle 1 line is not a mirror of Angle 2 line.Angle 1 line is not a mirror of Angle 2 line.

 

0 Likes
Message 4 of 6

Viveka_CD
Alumni
Alumni

Hi @Anonymous

 

Can you confirm if you are on the latest build for Revit 2017?

See here for more information.

 

(The 2017.2.3 update has bug fixes w.r.t dwg)

 

Can you also share the Revit file and .pat to test further? I can send you a private upload folder.

 

Regards,

 

 

Message 5 of 6

FAIR59
Advisor
Advisor
Accepted solution

the repetion displacement for the 116 degree line is negative.

;%UNITS=INCHES
*Slate Roof Tile 1, Dunbar Roof Tile - 8"x8" - 2"x4" Bevel
;%TYPE=MODEL
090, 0,4, 8,4, 4,-12
63.43494882, 6,0, 5.36656315,7.15541753, 4.47213596,-4.47213596
116.56505118, 2,0, -5.36656315,7.15541753, 4.47213596,-4.47213596
000, 2,0, 4,8, 4,-4

hatch.PNG

Message 6 of 6

Anonymous
Not applicable

Niccccce.

 

Thanks much

0 Likes