Hello, first post here.
Im trying to make a script using ifcopenshell to try to remedy the fitting color problem (not the same color like the system they are connected to).
I cannot figure out how the IfcStyledItem is connected to for example ifcFlowFitting.
When searching all classes that are connected to the ifcFlowFitting i cant find the link to the IfcStyledItem (which holds the color info). All i could find is an IfcMaterialList that has a connection to an ifcFlowFitting with a IfcRelAssociatesMaterial. I tryed chaning the materials that are in these lists to the same material as the system, and it has had some success, but not all elements have a materials list. In bimvision viewer on the fitings i managed to do this, the colors have updated correctly, but in bimcolabzoom they have not, so i guess they have a different way of interpreting color. See photo
So im curious about how are general 3d elements connected to their materials in the 2x3 schema (or do they even have to be). Can they have just a color setting on their 3d geometry (extrusion,sweeps etc… )?
Also if someone can point me to some useful resources with examples for understanding ifc data structure ( excluding osarch wiki)?
I am looking at the documentation schematic but I’m not sure how to interpret it based on the step files im getting out of Revit export.
Thank you, this helped me alot. I managed to reassign styles of solids by systems.
Is there somewhere I can read more about material-based styling, is this something that is built in the 2x3 schema?