Use IFCGuid to get IFCMaterial As List

Hello
Is it possible to get a list of IFCGuids with their corresponding IFCMaterials?

Thanks

PS This forum wouldn’t allow me to upload or link to my IFC file :frowning:

No. IfcMaterial has no GUID

https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/link/ifcmaterial.htm

The elements in my IFC file each have one IFCGuid and one IFCMaterial… I don’t know how to parse the file to get a dictionary of the pairs…

@Bedson It seems you posted this question in the OSArch community first, so I’ve responded to it in your original post. I’ve provided a code example too.

1 Like