I want to apply a random colour pattern to the pieces of glass in a leaded window. Three colours, to be precise. Created three Materials and applied them to the glass pieces and as a result, all placed Windows look the same. That's bit boring, so I set out on how to randomize the colours. I've seen some posts on how to get Dynamo to do this with panels in a Curtain Wall. But I don't know anything about Dynamo? So I wonder how to get this done, one way or the other...
I don't think dynamo would be of help to you anyways. A window family with a bunch of polygonal pieces of geometry representing glass? Do all these geometries (e.g. "glass pieces") have a material parameter associated to it, or are you painting the material onto the geometries in the family?
...am I understanding you correctly? This is what I'm envisioning you are doing:
@barthbradley wrote:A window family with a bunch of polygonal pieces of geometry representing glass?
Do all these geometries (e.g. "glass pieces") have a material parameter associated to it,
...am I understanding you correctly? This is what I'm envisioning you are doing:
Yes, yes and yes.
One alternative is using instance parameters for the glass Material, but this means a truck load of parameters in the Family....
Truck-load of Parameters? Why? I thought you said only 3 materials were being "randomized". That's 3 Parameters. But, still, every piece of geometry will need to have its Material Parameter associated to one of those 3.
@barthbradley wrote:Truck-load of Parameters? Why?
Exactly. There are three colors and some 60 pieces of glass. Each piece of glass needs a Material. So if I where to use instance parameters for the material, then each piece of glass needs a parameter. Pretty cumbersome, and that's why I was hoping for a different solution like Dynamo...
No it's not that complicated. Create 3 materials in your project, such as Green glass, Blue glass and red glass. Each pane of glass will have a material parameter, which will be either Colour 1, Colour 2 or Colour 3 (for example). Apply these randomly and associate with the coloured glass materials in your project.
I am afraid it's more complicated than that.
If I got it right, he wants to randomize both: material AND glass associated with it.
If he do it as you suggested, he will get the same patterns where colors just switched places.
Can you upload image of the front view of the window geometry?
Are those rectangles, or some curved glass geometries?
This is one of the windows. In this one, I created a family for each shape of glass. In those glass-families, I created three types for each colour. After placing all the pieces of glass, I changed the types to get a more or less random colour pattern.
In the mean time, I tried another solution. My idea was to gather all glass panels in a schedule, export the schedule to Excel, let a formula do the randomization and import the Excel file back into the schedule. But alas....
I assigned a shared (instance) parameter for the glass material. Made the pieces of glass a shared family, so I could gather all instances in a schedule. Exported the schedule to Excel and then found out the value for instance parameters are not exported, nor can they be modified...
At least I can now assign colors in the schedule rather then selecting each piece of glass...
I must admit that the "problem" you have is quite interesting.
I have an idea, I did not test it, it's just a concept for now, but I think it will work.
First, let's ignore top row for now and think as all of the rows are the same.
This way, with only 8 parameters you can get millions of combinations.
If you create <Family Type...> parameters as shared parameters, you will be able to schedule it and randomize everything in the schedule which is much faster.
If you create <Family Type...> parameters as shared parameters, you will be able to schedule it and randomize everything in the schedule which is much faster.
I gave it a try, but unfortunately - after exporting the schedule, the column with the <Family Type> is read-only. Unlocked it, randomized the content and imported it back into Revit. And as you may have guessed - it doesn't import the modified values for the <Family Type> column.
But the idea of putting the glass in rows to randomize is a pretty good work-around....
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.