How to create Custom Fill Patterns
There are 2 types of Fill Patterns (often referred to as Hatch Patterns) within Revit.
Drafting
Intended for Cut Patterns and are a fixed print scaleModel
Intended for Surface Patterns and are a real world scale
Fill Patterns are created from .PAT files or using the limited built in options.
Creating a Fill Pattern using the Built-in Functionality
Revit provides some limited functionality to create Basic Fill Patterns. A basic fill pattern consists of a series of parallel or orthogonal lines; examples include Diagonal Crosshatch or Vertical Siding.
Select Manage ► Settings ► Additional Settings ► Fill Patterns
In the Fill Patterns dialog, under Pattern Type, select Drafting or Model.
If you are using the Structural features of Revit, select Drafting only.Enter the Properties for your Fill Pattern adhering to the Naming rules.
New Basic PatternSelect New Pattern
Provide a Name
Enter the desired Settings
Select OK
More Information on Orientation in Host Layers can be found here:
Creating a Custom Fill Pattern Manually
When creating a Custom Fill Pattern you will make use of a .PAT file. The syntax for this file is as follows:
Units:
;%UNITS=[value]Header:
*pattern-name,
[optional description]Type declaration:
;%TYPE=MODELPattern descriptors:
angle,
x-origin, y-origin, shift, spacingProcess
Select Manage ► Settings ► Additional Settings ► Fill Patterns
In the Fill Patterns dialog, under Pattern Type, select Drafting or Model.
If you are using the Structural features of Revit, select Drafting only. For the example we’ll use a Model Pattern.Select the Type as Custom
Browse for your .PAT file
Specify the Scale of the Pattern, in this case the Scale is 1.0
Enter the Name for your Fill Pattern adhering to the Naming rules.
Select OK.
Sample
;%VERSION=3.0
;%UNITS=MM
*Tile Plank 250x1500,[ENTITIES]
;%TYPE=MODEL
0,0,0,0,250
90,0,0,0,1500,250,-250
90,750,250,0,1500,250,-250
90,1500,0,0,1500,250,-250Result
Creating a Custom Fill Pattern using a Revit Addin
Let’s face it, defining complex fill patterns in code is really hard. You will be thankful to know there is an easier way.
There are a number Revit Addins available to do this, and one of them is free!
WARNING:
pyRevit whilst very powerful and useful, includes numerous tools which if used incorrectly can cause damage to your file. Always Save your model before running any pyRevit commands and ensure you have a working backup.
Creating a Custom PAT file using pyRevit
Install pyRevit
Create a Drafting View (use a Working Project),
For Drafting Patterns, set the scale to 1:1
For Model Patterns, use any scale you find appropriate
Sketch out your repeating pattern using Detail Lines, it’s helpful to include a border of where the repeat boundary is.
Sample PatternSelect the Pattern Lines (excluding the Boundary)
Select pyRevit ► Modify ► Make Pattern
Set the desired settings for the Pattern Name, Pattern Type, Scale, Units and when you’re ready choose either Export PAT File or Create Pattern.
Your Fill Pattern and/or PAT file has now been created.