I am looking for a way to export an IFC where objects of the same workset have the same color. I did some research and it seems that the way to do it is by applying the same material to those elements (filters are not visible in IFC). Since there are a lot of elements in the model I tried to apply materials using Dynamo.
There are 4 ways to apply materials in Revit:
- By category or subcategory
- By family
- By element parameter
- By face of element geometry using paint
Assigning materials by category does not solve my problem since there are elements of the same category in different worksets.
In the case of families, there is the following issue. Families contain nested families, whose parameters cannot be accessed by Dynamo if the nested families are not shared. At the same time, to make the nested families shared, one should access the nested family parameters.
As for single elements, there are some elements that don’t have a parameter of type “Material” and when I create one it is not recognized, meaning that the element does not take the color of the material assigned to the parameter.
Finally, painting element geometry only works for some of the elements.
Do you have any idea on how I can fix any of those issues? Also, feel free to propose another solution. As I said, the end goal is to get an IFC where elements are colored by workset.
Thanks in advance