Announcements

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

Building a pattern that repeats on a grid

Kevin.Bell
Advisor

Building a pattern that repeats on a grid

Kevin.Bell
Advisor
Advisor

Hi,

 

I'm putting together an addin to create patterns, and I'm interested in creating a pattern that repeats on a grid basis.

 

The code I have will create a complex pattern, but I can't get it to create the pattern I want, mainly because I can't resolve some of the required values in the pattern PAT file code.

 

To test my understanding, I created a pattern in PyRevit and then attempted to decode the PAT file, after a lot of reading I can attribute 4 of the 6 required values, but can't work out two of them.

 

The attached Revit file shown the pattern, and has text in the bottom left corner that explains what I believe the PAT file values relate to.

 

Also, some of the values don't exactly match... I'm wondering if thats due to some sort of conversion or rounding?

 

I'd appreciate some advice!

 

Thanks,

 

 

0 Likes
Reply
265 Views
1 Reply
Reply (1)

jeremy_tammik
Autodesk
Autodesk

Have you done any research on the AutoCAD PAT file format?

  

  

Afaik, it is fully documented and Revit uses the same pattern definitions.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes