View Full Version : Custom Pattern (.pat) file, how to create and change the import units?
samov
2008-10-09, 12:24 AM
Custom Pattern (.pat) file, how to create and change the import units?
How do i create a custom pattern file? (BESIDES the help documented way which i honestly tried to do... for about 2 hours now) Although the help documentation is ok, i still do not understand how you relate all this to a certain dimension in the real world. I want to create a custom MODEL pattern for some bricks which are a certain size. The help system does not document a proper workflow on how to do this, and to make things worse things seem not to want to import in anything else than inches.
Is there any software i can use?
NB. This is my second thread in 3 hours... i am ashamed... search did not help either.
samov
2008-10-09, 12:30 AM
Found a solution... i'll have to dig deeper before i post next time...
http://forums.augi.com/showthread.php?t=77242&highlight=custom+pattern
Norton_cad
2008-10-09, 03:48 AM
I have an old lisp routine called HatchMaker, that will create a 1X1 box for you to draw your line work of a hatch pattern, then save it as a pat file. Works great with ACAD & Revit & it's FREE.
Or try the Brick.LSP for brick/tile patterns. Again FREE.
Give it a go & let me know how it worked out. I think I have another Lisp somewhere, that isn't limited to a 1x1 block, but hopfully I won't need to go digging if this one is okay
tgross.197084
2008-10-09, 07:14 PM
I just found Hatchmaker on CADALYST (2005) and was working on trying to modify it to do a 12"x12" block for easily making model patterns at 1:1. I've got almost everything working except for the part where it does a series of validity tests on the linework slopes (around line #170).
If you happen to have a version not limited to 1"x1", it would be great if you could post it!
hugh.69031
2008-10-12, 04:27 AM
Revit pattern text files define patterns in inches or millimetres. Insert either following line near the beginning of the .PAT file (the default is inches):
;%UNITS=MM
;%UNITS=INCHA MODEL pattern requires an extra line following the pattern name in the file
;%TYPE=MODEL
while ;%TYPE=DRAFTING (the default) results in a drafting pattern. This is described in the preamble to revit.pat, the OOTB sample patterns file.
Loading an INCH pattern to a metric drawing or a MM pattern to a non-metric drawing results in soft conversion.
Note upper and lower limits on pattern size which are unlikely to affect rectangular bricks but can affect more complex patterns:
http://www.hatchkit.com.au/faq.php
hth,
Hugh Adamson
www.cadro.com.au (http://www.cadro.com.au)
amendez.164680
2009-06-24, 08:58 PM
Could you explain how to use the lisp file that you posted?
ljohans
2009-07-01, 06:45 PM
Yeah if anyone could give a quick walk-through of running the application once its loaded, it would be much appreciated.
Thanks.
I have been able to load the app but don't know where to go from there.
tomnewsom
2009-09-21, 10:46 AM
in Revit 2009
*1.5x1running
;%TYPE=MODEL
;%UNITS=MM
0, 0,0, 0,1
90, 0,0, 0,1.5, 1,-1
90, 0.75,0, 0,1.5, -1,1
gives me the error
Line 3 has syntax error, import terminated.
removing line 3 removes the error, but now I have to scale from inches (with a messy scale factor from calculator that leaves microscopic sub-mm errors in my pattern)
anyone know what's going wrong?
kwatson02118197363
2009-09-21, 11:10 AM
I used this thread to help me bring in a subway tile pattern that we were using in AutoCad to use in Revit. It works perfect
http://forums.augi.com/showthread.php?t=26050
Shaun Miller
2009-10-09, 02:55 AM
in Revit 2009
*1.5x1running
;%TYPE=MODEL
;%UNITS=MM
0, 0,0, 0,1
90, 0,0, 0,1.5, 1,-1
90, 0.75,0, 0,1.5, -1,1
gives me the error
Line 3 has syntax error, import terminated.
removing line 3 removes the error, but now I have to scale from inches (with a messy scale factor from calculator that leaves microscopic sub-mm errors in my pattern)
anyone know what's going wrong?
place the units line above the description
;%UNITS=MM
*stretcher, strecterbond
;%TYPE=MODEL
0, 0,0, 0,100
90, 0,0, 100,120, 100,-100
aaronrumple
2009-10-09, 01:29 PM
place the units line above the description
;%UNITS=MM
Note that the ;%UNITS=MM is header information and only needs to be at the top of the file once even if several patterns are declared in the same file.
Header information>
;KdG Revit custom Pattern File
;Designed By Aaron Rumple, AIA
;%UNITS=INCH
;%VERSION=3.0
; angle, x-origin,y-origin, shift,offset, dash, space, dash, space ...
; 0, 0,0, 0,0, 0, 0, 0, -0,...
didier.ting
2010-06-24, 11:33 PM
Note that the ;%UNITS=MM is header information and only needs to be at the top of the file once even if several patterns are declared in the same file.
Header information>
;KdG Revit custom Pattern File
;Designed By Aaron Rumple, AIA
;%UNITS=INCH
;%VERSION=3.0
; angle, x-origin,y-origin, shift,offset, dash, space, dash, space ...
; 0, 0,0, 0,0, 0, 0, 0, -0,...
in most of the european countries we have "," and "." switched for numbers.
eg:
two thousand point six = 2.000,6
now, my version of revit cannot read the lines in .PAT with the numbers.
i'm just wondering if i should replace the "," with something else.
i just can't get it
hugh.69031
2010-07-01, 04:27 PM
> my version of revit cannot read the lines in .PAT with the numbers.
What is the format in your standard Revit.pat file?
Can you load patterns from your standard Revit.pat file?
Hugh Adamson
www.hatchkit.com.au (http://www.hatchkit.com.au)
If you're getting syntax errors, try this:
Sometimes you have to use a .pat file that was originally created to be a fill pattern import: you can't always rename a .txt file to .pat. To do this, go to your C:\ drive Revit folder Data > revit.pat. You can copy this file, delete everything, and then use it as a container for your new fill pattern .pat file. I was getting syntax errors on import until I did this.
ThinkRevit
2017-02-26, 04:38 PM
See link below to many premade Model Fill Patterns
https://bimdata.click/revit-model-pattern-brick/
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.