I am able to obtain all psets, properties, and values from every instance of the specified entity, but I am not sure how to proceed on adding them to their respective objects in the new file ## Getting Psets of entities ## for i in range(len(products)): if products: obj = products[i] for relDefinesByProperties in obj.IsDefinedBy: print([i]) #print("[{0}]".format(relDefinesByProperties.RelatingPropertyDefinition.Name)) PropertySetName = relDefinesByProperties.RelatingPropertyDefinition.Name print(PropertySetName)...
I have a case where I have a large IFC file in which I want to extract specific entities and their corresponding Psets and export them in a new IFC file. My approach is to iterate over all entities of the specified class and .add to the new file, but this does only extract the geometry and does not maintain its related psets.. Various discussions points out that NewIFC.createIfcRelDefinesByProperties function does it, but my limited expertise with IfcOpenshell makes me hit rock bottom trying to make...