When trying to load a .pat file, I get the following error.
When I check the filepath, the .pat files icon is different. I am thinking this is why it is not loading.
The icon should look like these
Any idea why this is happening?
Solved! Go to Solution.
Solved by Pattycake_Kyle. Go to Solution.
But even at that, they still should have the right icon in my directory. Without trying to load from Revit, when I navigate to the filepath folder in my C Drive, the icon is not the correct one.
Open the .pat file and change %%Drafting%% to %%Model%% and then Save it under a new name. Then see if you can create a new Model Pattern from it in Revit. Might work. Might not.
In addition to potentially not being a PAT file or the right type in general, that is also the error output when there is also something internally wrong with the PAT file. (lines too dense, spacing or offset non-compliance etc - it wont even load the PAT file into the program). Which as @ToanDN has pointed out, the icon doesn't matter. It looks like its correctly saved as a .pat file.
If you upload or copy in the text here for that PAT file i can investigate for you. Or head over to Pattycake and paste in the values in our text editor, it will pop out a red '!' for which lines may be issues.
Cheers
Error on line 14
the reason your seeing the way you are is the ".PAT" file type has been associated with Notepad.
That said, a .pat file is just a text file, you can open and edit it with any text editor.
Howard Munsell
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
OK. Thanks for the clarification. This was the first thing that jumped out at me cause I always remember the .pat file being the 'red' icon in the image above. Now I know. I will have to look further to see what the issue is. At least that is ruled out.
Still getting the error after using Pattycake to create the .pat file.
Copied it into a .txt and renamed to .pat
When creating and new Model pattern, I navigate to this .pat and I still get the error
See the error on line 8?
The "!" tells you something is wrong there. If you hover over that icon, it will tell you more specifically about the error.
In this case i can tell you its that your offset is set to zero (0). The offset tells it how to repeat the line, and if that is zero, there is no 'repeating'. So for DRAFTING patterns (for example), Autodesk wants an offset of .002" or more.
This goes into the offset and values for what they do.
https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Au...
Once you clear all line errors, you should be able to load it in.
Thank you @Pattycake_Kyle
Pattycake has made a serious difference in understanding pattern files
So glad to hear 😎
Reach out anytime hi@pattycake.io if you are having troubles. And keep an eye out, we're prepping to release some great doc resources for help in creating pattern files and understand them more.
Cheers! :birthday_cake::birthday_cake::birthday_cake::birthday_cake::birthday_cake::birthday_cake::birthday_cake:
Hi, I'm wondering why this is so insanely difficult. Literally none of these steps work for me, Revit won't recognize pattern files even if I reassign how they open with windows, the whole thing is beyond frustrating.
Anymore info on what is going on? Suggest you load it into Pattycake and it can normally spot the errors. As earlier mentioned in the thread, it wont matter what program its assigned to. It normally has to do with the PAT file breaking one of the many rules or incorrect syntax. If you load into Pattycake, you'll see red ! mark for errors and when downloading, it will give you warnings for potentially 'bad' PAT files.
https://pattycake.io/docs/d/pat-file-syntax-and-rules Check here for the rules, the file most likely has incorrect syntax or is breaking a rule, both of which wont load into Revit. You can also reach out to hi at pattycake if you need additional help 🤘
Ok, pattycake spotted possible errors but I have no idea about how to fix them.
Also Revit can't even find the file to load the pattern, so that's still an issue.
Also the pattern file seems to have been vetted by Revit City users, but I have not once been able to successfully load any .pat file into Revit. So there seems to be some major problem with Revit not finding the file type, I'm not sure though.
can you upload the PAT file to this thread so we can take a look at it?
Howard Munsell
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Ditto to what @hmunsell said. We have to see the PAT file to take a look and test it. Or perhaps link to the revitcity thread?
I now think that perhaps the problem is with .pat files that I'm getting from Revit City. I managed to find a .pat file generated just for Revit that seems to work. Thanks for the help.
As far as editing these files, I'm not sure where to start, maybe with a tutorial?
Can't find what you're looking for? Ask the community or share your knowledge.