Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Add .Pat files to Revit project

n_mulconray
Advocate

Add .Pat files to Revit project

n_mulconray
Advocate
Advocate

Is there support in the 2019+ API to either directly load a .Pat or to generate a .Pat from a text file? I would show the items in listview and then use drag and drop to load some standard .pat that would be visible within a project.

0 Likes
Reply
758 Views
1 Reply
Reply (1)

miguelmachadoecosta
Advocate
Advocate

Revit doesn't load or store .pat files. It just reads them once to create its own patterns. You would have to do the same by reading the .pat files and creating FillGrids for each FillPattern.

 

You can check these links for clues:

https://forums.autodesk.com/t5/revit-api-forum/fillgrid-properties/td-p/8304039

https://forum.dynamobim.com/t/batch-add-pattern-files/25540

https://www.revitapidocs.com/2019/cc546ee9-ba80-c13d-4b74-8c0e2517bc28.htm

https://www.revitapidocs.com/2019/6dfc3e2f-c869-d06e-876e-49c4007f7e59.htm

 

Example of a gravel definition:

pattern.png

 

0 Likes