Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Custom Hatch Pattern that includes text

5 ANTWORTEN 5
GELÖST
Antworten
Nachricht 1 von 6
Ian_H
562 Aufrufe, 5 Antworten

Custom Hatch Pattern that includes text

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

5 ANTWORTEN 5
Nachricht 2 von 6
ToanDN
als Antwort auf: Ian_H

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

Nachricht 3 von 6
Ian_H
als Antwort auf: ToanDN

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. 

Nachricht 4 von 6
ToanDN
als Antwort auf: Ian_H


@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

 

 

Nachricht 5 von 6
Ian_H
als Antwort auf: ToanDN

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

Ian_H_0-1667936278883.png

 

 

Nachricht 6 von 6
ToanDN
als Antwort auf: Ian_H


@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.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report