Custom Hatch Pattern that includes text

Custom Hatch Pattern that includes text

Ian_H
Advocate Advocate
836 Views
5 Replies
Message 1 of 6

Custom Hatch Pattern that includes text

Ian_H
Advocate
Advocate

We have a hatch file that I believe is an old AutoCAD hatch that has the number 2 and diagonal dashes. We are wanting a similar hatch but with 3 instead of 2. I tried stacking the original hatch, a grey filled area, and the number 3 and then using PyRevit but that didn't work. 

image.png

 

PAT files are text documents, so I'm not sure how to get the 3 in there. 

 

Anyone know how I can go about creating one, have one they could share, or have a better solution? 

 

I did find the program 'HatchiKit', but was confused on how to use it. 

 

Thanks

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

ToanDN
Consultant
Consultant
Accepted solution

Draw the number 3 using straight line segments (then you can create a fill pattern using pyRevit.

Message 3 of 6

Ian_H
Advocate
Advocate

This did occur to me as I figured PyRevit just couldn't read the text since it wasn't linework. I just wasn't sure how well I was going to be able to draw out the 3 with detail lines. 

0 Likes
Message 4 of 6

ToanDN
Consultant
Consultant

@Ian_H wrote:

This did occur to me as I figured PyRevit just couldn't read the text since it wasn't linework. I just wasn't sure how well I was going to be able to draw out the 3 with detail lines. 


It's not pyRevit fault.  It is that Revit fill patterns cannot contain anything but straight line segments.

Here is a fill region created using pyrevit..

 

ToanDN_0-1667929633556.png

 

 

ToanDN_1-1667929676403.png

 

 

0 Likes
Message 5 of 6

Ian_H
Advocate
Advocate

Went down the rabbit hole of recreating all the linework, lol. 

Ian_H_0-1667936278883.png

 

 

Message 6 of 6

ToanDN
Consultant
Consultant

@Ian_H wrote:

Went down the rabbit hole of recreating all the linework, lol. 

 

 


Well done. 

I just tested pyRevit again, and to my surprise, it CAN take non-straight lines (circles, arcs, ellipses, splines), translates them into straight line segments to create fill patterns.