Hi All,
First, thanks for everyone supporting this great community. I have been reading on and off, but never got a chance to add to it, until now, when I finally got a chance to work on IFCs.
A bit of context, some of the work we do involve exporting Space Gass files, a structural analysis tool, to IFC. What we intend to achieve, is to assign each structural column and beam some colour using IfcOpenShell. This has to be assigned to the element, not using a material as the element has its own material. Thanks to Dion, https://forums.buildingsmart.org/t/where-and-how-will-my-colors-be-saved-in-ifc/1806/12, I got to the conclusion that the element needs an IfcStyledItem.
Now the real challenge, the exported IFC has a lot of MappedRepresentations and a disconnected IfcStyledItem that I cannot retrieve with IfcOpenShell. Neither I can add a new one and assign it to the element with ifcopenshell.api.run("style.assign_representation_styles", ifc, shape_representation= representation, styles=[style_custom])
, as it seems MappedRepresentations don't like it and the style remains unassigned.
Can anyone help me to check if the attached IFC file is a fully ISO complaint IFC file?
If this is the case, looking for further guidance about how to handle the colouring with IfcOpenShell. Happy and keen to contribute to the project if needed.