How to change the linetype of fill pattern?

How to change the linetype of fill pattern?

AustinMcCollum
Enthusiast Enthusiast
4,524 Views
4 Replies
Message 1 of 5

How to change the linetype of fill pattern?

AustinMcCollum
Enthusiast
Enthusiast

I want to change the linetype of the fill pattern for a product....ie I want the ceiling tile to show up as dashed lines instead of solid lines. How can I do that through the .pat file?

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

ToanDN
Consultant
Consultant

You need to create a new fill pattern with dashed line definition.

 

https://ein.sh/pyRevit/pyrevit/updates/2019/05/27/4623.html

0 Likes
Message 3 of 5

AustinMcCollum
Enthusiast
Enthusiast

Ok, which spot in the .pat is that and what number makes it dashed?

0 Likes
Message 4 of 5

Anonymous
Not applicable

All the instructions are in the revit.pat file...  But if you want the easy way of doing it, download the PyRevit add-in and make your own patterns.

 

"; Each line family is a set of parallel lines that build one "direction" of a pattern. A complete
; pattern may be defined by several families each defining part of the final, such as the vertical
; joints of brick coursing. The lines are described in the two dimensions of a face as follows:
;
; angle, x-origin, y-origin, shift, offset, dash, space, dash, space ...
;
; Angle specifies the direction, in degrees, of a set of lines relative to the x-axis. The first
; line in the set starts at the specified x,y-origin. Parallel lines are drawn as specified by
; Offset and Shift to fill the entire face. Offset defines the distance between parallel lines.
; Zero Offset is not allowed. Shift moves the pattern of dashes and spaces along the length of
; each new parallel line. Shift is ignored if the line is solid. Distances are expressed as
; decimal numbers (using peroid as the decimal separator) in the units previously specified.
;
; The dash-space sequence defines a repeating pattern of dashes and spaces for a line. If it is
; omitted, the line is solid. Positive numbers define dashes, negative numbers define spaces, and
; zero specifies a dot. If you begin a pattern with a space, do not alternate dashes and spaces,
; or do not end with a space, Revit will introduce tiny dashes or spaces to compensate. Revit
; expands dots and very short dashes into dashes of a minimum size."

0 Likes
Message 5 of 5

hugha
Collaborator
Collaborator
Accepted solution

No need to install pattern generators for an orthogonal grid pattern drawn with dashed lines as they are pretty well simple enough to do in your head  - or at least within Notepad. 

 

Most of this template is fixed -  just plug in your own values:

 

;%VERSION=3.0
;%UNITS=MM
*FILLNAME
;%TYPE=MODEL
0,0,0,0,depth,dashlength, - spacelength

90,0,0,0,width,dashlength, - spacelength

 

So for a say, 600mmx300mm grid drawn with 50mm long dashes and spaces:

 

;%VERSION=3.0
;%UNITS=MM
*grid300x600with50-50dashedlines
;%TYPE=MODEL
0,0,0,0,300,50,-50

90,0,0,0,600,50,-50

 

Save to a file with .PAT extension for loading to Revit. 

 

Beware NotePad will try hard to append a .TXT extension - simply override by selecting Save As Type:  All Files (*.*) within the Save dialog.

 

hth,

Hugh Adamson

www.hatchKit.com.au