New to Dynamo, always wanted to get into it and see huge potential with it and our workflows.
But I’m currently looking at one of the most repetitive and boring tasks I’ve ever been asked to do in Revit.
Essentially I have an IFC of a manufactured CLT building imported into Revit, approx 1450 elements.
1st issue is the import has converted each element as an In-Place object.
2nd issue is each element has its own unique material, 1450 of them.
My task is to convert the Grey IFC to look like timber. The only way I’ve found to do that in Revit is to manually change each element > material appearance > input path to image folder, one by one…and while this is only 1450 x 3 clicks away, once it is done once it will be asked to be done again in the future. (I know 3Ds Max would probably be the right place to do this, but they want section cuts etc in the renders too).
I get how some of the nodes etc work in Dynamo but I think a bit of help with this script will help me put the pieces together.
Can you verify that the IFC parameter really drives the material? I would rather imagine that the in-place elements have a type parameter that could just be None or Default at the moment, which could be easy to fix at once. Anyway, if I am mistaken, here are some tips to get started:
You will first need to collect all the elements that you want to change. There are different methods to select elements: Categories / All Elements of Category could select all walls, and this page could give other clues: http://dynamoprimer.com/en/08_Dynamo-for-Revit/8-2_Selecting.html
If the material parameter is indeed a type parameter, this thread could help: Set Type Parameter
The parameter name is “Material” and you will need a Material.ByName node to select the material element (it has to be inserted between the code block containing “CLT Yoker” and the input for the value):
In this case, it could be that the material of these elements is simply set in the Object Styles dialog in Revit. Did you also try to change the Walls Material there?