Hi there,
I am trying to figure out how to edit patterns for Revit. I am almost there it feels like, but not quite yet.
I am trying to create an alternating pattern similar to the one you can see in the picture attached (1200mmx600mm). I started out with the pattern for "Wood-Board Wide" in Revits .pat-file, as this is very similar to what i want (except for the size of the boards), but i cannot get it perfectly right.
Can somebody please help me get this right?
(A code would be awesome...)
-AK
Gelöst! Gehe zur Lösung
Gelöst von FAIR59. Gehe zur Lösung
Gelöst von Ilic.Andrej. Gehe zur Lösung
Use this as a base -
*Block 16x48, 16 x 48 blocks running bond
;%TYPE=MODEL
0, 0, 0, 0, 16
90, 0, 0, 48, 24, 16, -16
Replace the 16 and 48 with the required numbers for the boards.
For this pattern I made for you, use import scale 10800. You will get 600x1200 board units. The code is bellow.
;%UNITS=MM
*Board Units,Custom hatch pattern
;%TYPE=MODEL
90,0.87388889,0.97222222,0,1,0.02777778,-0.97222222
90,0.76277778,0.97222222,0,1,0.02777778,-0.97222222
90,0.65166667,0.97222222,0,1,0.02777778,-0.97222222
90,0.54055556,0.97222222,0,1,0.02777778,-0.97222222
90,0.42944444,0.97222222,0,1,0.02777778,-0.97222222
90,0.31833333,0.97222222,0,1,0.02777778,-0.97222222
90,0.20722222,0.97222222,0,1,0.02777778,-0.97222222
90,0.09611111,0.97222222,0,1,0.02777778,-0.97222222
90,0.92944444,0.91666667,0,1,0.05555556,-0.94444444
90,0.81833333,0.91666667,0,1,0.05555556,-0.94444444
90,0.70722222,0.91666667,0,1,0.05555556,-0.94444444
90,0.59611111,0.91666667,0,1,0.05555556,-0.94444444
90,0.485,0.91666667,0,1,0.05555556,-0.94444444
90,0.37388889,0.91666667,0,1,0.05555556,-0.94444444
90,0.26277778,0.91666667,0,1,0.05555556,-0.94444444
90,0.15166667,0.91666667,0,1,0.05555556,-0.94444444
90,0.04055556,0.91666667,0,1,0.05555556,-0.94444444
90,0.95722222,0.86111111,0,1,0.05555556,-0.94444444
90,0.84611111,0.86111111,0,1,0.05555556,-0.94444444
90,0.735,0.86111111,0,1,0.05555556,-0.94444444
90,0.62388889,0.86111111,0,1,0.05555556,-0.94444444
90,0.51277778,0.86111111,0,1,0.05555556,-0.94444444
90,0.40166667,0.86111111,0,1,0.05555556,-0.94444444
90,0.29055556,0.86111111,0,1,0.05555556,-0.94444444
90,0.17944444,0.86111111,0,1,0.05555556,-0.94444444
90,0.06833333,0.86111111,0,1,0.05555556,-0.94444444
90,0.985,0.80555556,0,1,0.05555556,-0.94444444
90,0.87388889,0.80555556,0,1,0.05555556,-0.94444444
90,0.76277778,0.80555556,0,1,0.05555556,-0.94444444
90,0.65166667,0.80555556,0,1,0.05555556,-0.94444444
90,0.54055556,0.80555556,0,1,0.05555556,-0.94444444
90,0.42944444,0.80555556,0,1,0.05555556,-0.94444444
90,0.31833333,0.80555556,0,1,0.05555556,-0.94444444
90,0.20722222,0.80555556,0,1,0.05555556,-0.94444444
90,0.09611111,0.80555556,0,1,0.05555556,-0.94444444
90,0.92944444,0.75,0,1,0.05555556,-0.94444444
90,0.81833333,0.75,0,1,0.05555556,-0.94444444
90,0.70722222,0.75,0,1,0.05555556,-0.94444444
90,0.59611111,0.75,0,1,0.05555556,-0.94444444
90,0.485,0.75,0,1,0.05555556,-0.94444444
90,0.37388889,0.75,0,1,0.05555556,-0.94444444
90,0.26277778,0.75,0,1,0.05555556,-0.94444444
90,0.15166667,0.75,0,1,0.05555556,-0.94444444
90,0.04055556,0.75,0,1,0.05555556,-0.94444444
90,0.95722222,0.69444444,0,1,0.05555556,-0.94444444
90,0.84611111,0.69444444,0,1,0.05555556,-0.94444444
90,0.735,0.69444444,0,1,0.05555556,-0.94444444
90,0.62388889,0.69444444,0,1,0.05555556,-0.94444444
90,0.51277778,0.69444444,0,1,0.05555556,-0.94444444
90,0.40166667,0.69444444,0,1,0.05555556,-0.94444444
90,0.29055556,0.69444444,0,1,0.05555556,-0.94444444
90,0.17944444,0.69444444,0,1,0.05555556,-0.94444444
90,0.06833333,0.69444444,0,1,0.05555556,-0.94444444
90,0.985,0.63888889,0,1,0.05555556,-0.94444444
90,0.87388889,0.63888889,0,1,0.05555556,-0.94444444
90,0.76277778,0.63888889,0,1,0.05555556,-0.94444444
90,0.65166667,0.63888889,0,1,0.05555556,-0.94444444
90,0.54055556,0.63888889,0,1,0.05555556,-0.94444444
90,0.42944444,0.63888889,0,1,0.05555556,-0.94444444
90,0.31833333,0.63888889,0,1,0.05555556,-0.94444444
90,0.20722222,0.63888889,0,1,0.05555556,-0.94444444
90,0.09611111,0.63888889,0,1,0.05555556,-0.94444444
90,0.92944444,0.58333333,0,1,0.05555556,-0.94444444
90,0.81833333,0.58333333,0,1,0.05555556,-0.94444444
90,0.70722222,0.58333333,0,1,0.05555556,-0.94444444
90,0.59611111,0.58333333,0,1,0.05555556,-0.94444444
90,0.485,0.58333333,0,1,0.05555556,-0.94444444
90,0.37388889,0.58333333,0,1,0.05555556,-0.94444444
90,0.26277778,0.58333333,0,1,0.05555556,-0.94444444
90,0.15166667,0.58333333,0,1,0.05555556,-0.94444444
90,0.04055556,0.58333333,0,1,0.05555556,-0.94444444
90,0.95722222,0.52777778,0,1,0.05555556,-0.94444444
90,0.84611111,0.52777778,0,1,0.05555556,-0.94444444
90,0.735,0.52777778,0,1,0.05555556,-0.94444444
90,0.62388889,0.52777778,0,1,0.05555556,-0.94444444
90,0.51277778,0.52777778,0,1,0.05555556,-0.94444444
90,0.40166667,0.52777778,0,1,0.05555556,-0.94444444
90,0.29055556,0.52777778,0,1,0.05555556,-0.94444444
90,0.17944444,0.52777778,0,1,0.05555556,-0.94444444
90,0.06833333,0.52777778,0,1,0.05555556,-0.94444444
90,0.985,0.47222222,0,1,0.05555556,-0.94444444
90,0.87388889,0.47222222,0,1,0.05555556,-0.94444444
90,0.76277778,0.47222222,0,1,0.05555556,-0.94444444
90,0.65166667,0.47222222,0,1,0.05555556,-0.94444444
90,0.54055556,0.47222222,0,1,0.05555556,-0.94444444
90,0.42944444,0.47222222,0,1,0.05555556,-0.94444444
90,0.31833333,0.47222222,0,1,0.05555556,-0.94444444
90,0.20722222,0.47222222,0,1,0.05555556,-0.94444444
90,0.09611111,0.47222222,0,1,0.05555556,-0.94444444
90,0.92944444,0.41666667,0,1,0.05555556,-0.94444444
90,0.81833333,0.41666667,0,1,0.05555556,-0.94444444
90,0.70722222,0.41666667,0,1,0.05555556,-0.94444444
90,0.59611111,0.41666667,0,1,0.05555556,-0.94444444
90,0.485,0.41666667,0,1,0.05555556,-0.94444444
90,0.37388889,0.41666667,0,1,0.05555556,-0.94444444
90,0.26277778,0.41666667,0,1,0.05555556,-0.94444444
90,0.15166667,0.41666667,0,1,0.05555556,-0.94444444
90,0.04055556,0.41666667,0,1,0.05555556,-0.94444444
90,0.95722222,0.36111111,0,1,0.05555556,-0.94444444
90,0.84611111,0.36111111,0,1,0.05555556,-0.94444444
90,0.735,0.36111111,0,1,0.05555556,-0.94444444
90,0.62388889,0.36111111,0,1,0.05555556,-0.94444444
90,0.51277778,0.36111111,0,1,0.05555556,-0.94444444
90,0.40166667,0.36111111,0,1,0.05555556,-0.94444444
90,0.29055556,0.36111111,0,1,0.05555556,-0.94444444
90,0.17944444,0.36111111,0,1,0.05555556,-0.94444444
90,0.06833333,0.36111111,0,1,0.05555556,-0.94444444
90,0.985,0.30555556,0,1,0.05555556,-0.94444444
90,0.87388889,0.30555556,0,1,0.05555556,-0.94444444
90,0.76277778,0.30555556,0,1,0.05555556,-0.94444444
90,0.65166667,0.30555556,0,1,0.05555556,-0.94444444
90,0.54055556,0.30555556,0,1,0.05555556,-0.94444444
90,0.42944444,0.30555556,0,1,0.05555556,-0.94444444
90,0.31833333,0.30555556,0,1,0.05555556,-0.94444444
90,0.20722222,0.30555556,0,1,0.05555556,-0.94444444
90,0.09611111,0.30555556,0,1,0.05555556,-0.94444444
90,0.92944444,0.25,0,1,0.05555556,-0.94444444
90,0.81833333,0.25,0,1,0.05555556,-0.94444444
90,0.70722222,0.25,0,1,0.05555556,-0.94444444
90,0.59611111,0.25,0,1,0.05555556,-0.94444444
90,0.485,0.25,0,1,0.05555556,-0.94444444
90,0.37388889,0.25,0,1,0.05555556,-0.94444444
90,0.26277778,0.25,0,1,0.05555556,-0.94444444
90,0.15166667,0.25,0,1,0.05555556,-0.94444444
90,0.04055556,0.25,0,1,0.05555556,-0.94444444
90,0.95722222,0.19444444,0,1,0.05555556,-0.94444444
90,0.84611111,0.19444444,0,1,0.05555556,-0.94444444
90,0.735,0.19444444,0,1,0.05555556,-0.94444444
90,0.62388889,0.19444444,0,1,0.05555556,-0.94444444
90,0.51277778,0.19444444,0,1,0.05555556,-0.94444444
90,0.40166667,0.19444444,0,1,0.05555556,-0.94444444
90,0.29055556,0.19444444,0,1,0.05555556,-0.94444444
90,0.17944444,0.19444444,0,1,0.05555556,-0.94444444
90,0.06833333,0.19444444,0,1,0.05555556,-0.94444444
90,0.985,0.13888889,0,1,0.05555556,-0.94444444
90,0.87388889,0.13888889,0,1,0.05555556,-0.94444444
90,0.76277778,0.13888889,0,1,0.05555556,-0.94444444
90,0.65166667,0.13888889,0,1,0.05555556,-0.94444444
90,0.54055556,0.13888889,0,1,0.05555556,-0.94444444
90,0.42944444,0.13888889,0,1,0.05555556,-0.94444444
90,0.31833333,0.13888889,0,1,0.05555556,-0.94444444
90,0.20722222,0.13888889,0,1,0.05555556,-0.94444444
90,0.09611111,0.13888889,0,1,0.05555556,-0.94444444
90,0.92944444,0.08333333,0,1,0.05555556,-0.94444444
90,0.81833333,0.08333333,0,1,0.05555556,-0.94444444
90,0.70722222,0.08333333,0,1,0.05555556,-0.94444444
90,0.59611111,0.08333333,0,1,0.05555556,-0.94444444
90,0.485,0.08333333,0,1,0.05555556,-0.94444444
90,0.95722222,0.02777778,0,1,0.05555556,-0.94444444
90,0.84611111,0.02777778,0,1,0.05555556,-0.94444444
90,0.735,0.02777778,0,1,0.05555556,-0.94444444
90,0.62388889,0.02777778,0,1,0.05555556,-0.94444444
90,0.51277778,0.02777778,0,1,0.05555556,-0.94444444
90,0.985,0,0,1,0.02777778,-0.97222222
90,0.87388889,0,0,1,0.02777778,-0.97222222
90,0.76277778,0,0,1,0.02777778,-0.97222222
90,0.65166667,0,0,1,0.02777778,-0.97222222
90,0.54055556,0,0,1,0.02777778,-0.97222222
90,0.37388889,0.08333333,0,1,0.05555556,-0.94444444
90,0.26277778,0.08333333,0,1,0.05555556,-0.94444444
90,0.15166667,0.08333333,0,1,0.05555556,-0.94444444
90,0.04055556,0.08333333,0,1,0.05555556,-0.94444444
90,0.40166667,0.02777778,0,1,0.05555556,-0.94444444
90,0.29055556,0.02777778,0,1,0.05555556,-0.94444444
90,0.17944444,0.02777778,0,1,0.05555556,-0.94444444
90,0.06833333,0.02777778,0,1,0.05555556,-0.94444444
90,0.42944444,0,0,1,0.02777778,-0.97222222
90,0.31833333,0,0,1,0.02777778,-0.97222222
90,0.20722222,0,0,1,0.02777778,-0.97222222
90,0.09611111,0,0,1,0.02777778,-0.97222222
0,0,0.97222222,0,1,1,0
0,0,0.91666667,0,1,1,0
0,0,0.86111111,0,1,1,0
0,0,0.80555556,0,1,1,0
0,0,0.75,0,1,1,0
0,0,0.69444444,0,1,1,0
0,0,0.63888889,0,1,1,0
0,0,0.58333333,0,1,1,0
0,0,0.52777778,0,1,1,0
0,0,0.47222222,0,1,1,0
0,0,0.41666667,0,1,1,0
0,0,0.36111111,0,1,1,0
0,0,0.30555556,0,1,1,0
0,0,0.25,0,1,1,0
0,0,0.19444444,0,1,1,0
0,0,0.13888889,0,1,1,0
0,0,0.08333333,0,1,1,0
0,0,0.02777778,0,1,1,0
Andrej Ilić
phonetical: ændreɪ ilich
MSc Arch
Autodesk Expert Elite Alumni
Thank you! ![]()
The pattern is not quite what i was looking for though, I want it to alternate in different ways in three rows, but it seems like Dr_Grozozo found a solution to it.
-AK
Thank you, Dr_Gozozo!
Which program did you use to generate this code?
The code has a little glitch, but I have e been struggling for so many hours to get this right now, so it is more than good enough! Thanks for keeping me sane today! ![]()
Now, what I want for x-mas is Revit to make editing a pattern a bit easier!
-AK
Read this thread here:
http://revitiq.com/custom-revit-hatch-patterns/
But before you do it, there are some things you need to know.
When creating patterns, you have to imagine how they multiply. That's the trick. Now, this plugin defines the boundary of 1x1. Don't scale the boundary. I noticed that it may create some problems. So, you will need to deal with this number 1. 600 mm or 1200 mm (or 0.06 and 0.12 in this case) is not quite compatible with it. You must multiply 0.12x0.06 boards and then scale the whole pattern to fit the 1x1 square boundary. After you do it, my advice is to shift the whole pattern so that you don't have any lines touching the boundary. This will help predict its behavior during multiplication. Now, since we had to scale to fit the square, our import scale in Revit cannot be something like 1:100; 1:1000; 1:10000. So, what do you do.... You import the .pat file at the scale of 1:10000. Then you use the modify/measure tool to measure the distance between board lines. Now you can just do some simple math:
10000 = the import scale number that we used
a = measured distance between the board lines
x = the desired import scale number that we need to discover
600 = the new distance between the board lines that we want to achieve
10000/a = x/600
x = 10000*600/a
After creating the pattern file using plugin, you will need to edit it using notepad.
Insert these lines:
;%UNITS=MM
Units are millimeters. Put this Above the hatch name.
;%TYPE=MODEL
This defines the type of the pattern. Put this bellow the hatch name. If you don't define the type, the .pat will not work.
Andrej Ilić
phonetical: ændreɪ ilich
MSc Arch
Autodesk Expert Elite Alumni
or simple:
;%UNITS=MM
*Board Units,Custom hatch pattern
;%TYPE=MODEL
0,0,0,0,600
90,300,-600,0,1200,600,-1200
90,600,-1200,0,1200,600,-1200
90,0,0,0,1200,600,-1200
The accepted pattern shows how developing a pattern within the constraints imposed by a 1x1 square can generate much redundancy with a necessity to scale the generated fill on loading to Revit.
In my humble opinion, the fill supplied by FAIR59 is light and accurate and should be preferred.
Hugh Adamson
Thanks to you all! ![]()
FAIR59s solutions was exactly what i was looking for!! Thank you!! ![]()
(I was quite close in my attempts, but not close enough... it was my first time trying to customize patterns...)
Thanks for the explanation on the CustomHatch.lsp, Dr_Grozozo. I only have AutoCad LT atm, which I unfortunatley think is incomatible with .lsp(?), but hopefully this explanation can be helpful for others.
-AK
Following that logic, how can i do a similar pattern with values 100 & 160?
Thanks
@Anonymous wrote:
Following that logic, how can i do a similar pattern with values 100 & 160?
Thanks
You may have already found a pattern that works for you by now, but for anyone else who comes across this, here is that pattern, adapted to a 160x100 "board".
;%UNITS=MM *Board Units 160x100,Custom hatch pattern ;%TYPE=MODEL 0, 0, 0, 0,100 90, 40,-100, 0,160, 100,-200 90, 80,-200, 0,160, 100,-200 90, 0, 0, 0,160, 100,-200
I would probably put the last defining line in the second position, but it makes no difference to the pattern.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.