View Full Version : Fill Pattern
stephanschneller
2010-03-04, 12:09 PM
Hi,
I'd like to change a fill pattern from 'model' to 'drafting' which I read needs to be changed in the pat file.
Does anyone know where I can find this file?
I have found one though but this one doesnt incorporate the hatch I have imported from AutoCAD.
Regards,
Stephan
eric.piotrowicz
2010-03-04, 03:30 PM
The pattern file should be in your Revit directory under Data, there are two files, revit.pat and revit metric.pat. Open the one you need with notepad and there will be a bunch pattern definitions that look like the following.
*Block 200x400, 190x390mm blocks running bond 10mm joint
;%TYPE=MODEL
0, 0, 0, 0, 200
90, 0, 0, 200, 200, 200, -200
To change this from a model pattern to a drafting pattern just edit the line
;%TYPE=MODEL
to
;%TYPE=DRAFTING
and then save. I prefer to duplicate the pattern definition and then edit it so things don't break unexpectedly.
stephanschneller
2010-03-04, 04:06 PM
Thanks Eric,
I found these files and am able to read them.
The problem I have is as follows.
I have imported a dwg with a hatch that I need, than exploded the dwg, which creates a new fill pattern.
The hatch becomes a 'model' fill pattern, I need it to be a 'drafting' fill pattern.
Unfortunately this hatch appears not to be 'added' to the revit.pat nor the revit metric.pat. file.
So my question is where is saved? or is there another way to change it to a 'drafting' file pattern?
Regards
jamesgchambers
2010-03-04, 05:57 PM
Unfortunately, the pattern isn't saved in a *.pat format anywhere. Once it's defined in the project, it lives in the project.
There is no way to change it from Model to Drafting.
eric.piotrowicz
2010-03-04, 06:43 PM
Didn't realize your exact issue the first time around but this should get you on your way.
You'll need to find the acad.pat file that AutoCAD is using. Open that with Notepad and search through it for the specific hatch pattern that you need in Revit, once you find it copy/paste into the Revit.pat file. Besure you add the
;%TYPE=DRAFTING
line and double check the formatting so that Revit understands it correctly.
Let me know if you have other trouble.
stephanschneller
2010-03-05, 11:10 AM
I cant get it to work ;(
below are the lines that I have added to both the revit.pat and revit metric.pat files, as I wasnt sure which one it has to be.
*StephanS, Test
;%TYPE=DRAFTING
0, 0, 0, 0, 8
90, 0, 0, 8, 8, 8, -8
I would assume that once added and saved the new filler pattern 'StephanS' should appear in the drafting pattern list but it dosent.
Even after restarting the application and and starting a new project?
BTW, get all imported AutoCAD hatches converted into 'model' fill pattern or is there a way of deciding whether they become 'drafting' or 'model' patterns without changing the pat files?
Basically all Im trying to do is 'use' an AutoCAD hatch for my walls in section which I believe they have to be 'drafting' fill patterns?
Regards.
Stephen I would rather make a seperate *.pat file and not add that string to the original *.pat files. Then load that .pat file into your project by going to Manage>Settings>Fill Patterns. This way you know it will be loaded to your project correctly. Another suggestion would be to add the .pat file your actual template file.
stephanschneller
2010-03-05, 11:55 AM
Thank you very much, I think Im almost there ;)
The pattern Im trying to create is similar to below
|| || || || || ||
I have used the following settings:
*Stepha, test
;%TYPE=DRAFTING
89, 0, 0, 0, 0.14
89, 0, 2, 0, 0.14
The issue I have is that as soon as I change the angle from 89 to 90 the pattern changes into the following:
| | | | | | (lines equally spaced) which I dont want,
Am I doing something wrong?
Regards,
aaronrumple
2010-03-05, 07:07 PM
*Stepha, test
;%TYPE=DRAFTING
89, 0, 0, 0, 0.14
89, 0, 2, 0, 0.14
You have your x and y mixed up
*Stepha, test
;%TYPE=DRAFTING
90, 0, 0, 0, 0.14
90, 2, 0, 0, 0.14
stephanschneller
2010-03-05, 08:54 PM
That worked!....thank you very much.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.