Create Fillpattern from .pat file

Create Fillpattern from .pat file

RevitArkitek
Enthusiast Enthusiast
696 Views
1 Reply
Message 1 of 2

Create Fillpattern from .pat file

RevitArkitek
Enthusiast
Enthusiast

I searched around in the API help to see if its possible to create a FillPattern from a .pat file, like when you use the Custom button in the interface.  Doesn't seem like its possible.  Anyone know differently?  Thanks.

0 Likes
697 Views
1 Reply
Reply (1)
Message 2 of 2

Revitalizer
Advisor
Advisor

Hi,

 

of course it is possible to convert pattern files into FillPatternElements.

 

All you need is to read the pattern definitions from such a file (may contain more than one), then create FillPattern objects and set their FillGrids.

A FillGrid is the equivalent of a pattern definition's single line.

Parsing those text lines into FillGrids, is the main task.

 

That's all.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes