I'm trying to combine a number of IFC files that were exported from Revit. The reason they are separate files is because Revit can't export a project with linked elements as one IFC. I'm using Python and I haven't installed Qt or OCC as I figured it is unnecessary for this use case. The code I've been trying is this: import ifcopenshell new_file = ifcopenshell.open() old_files = list(map(ifcopenshell.open, [ "wall1.ifc", "wall2.ifc" ])) for old_file in old_files: for inst in old_file: new_file.add(inst)...
I'm trying to combine a number of IFC files that were exported from Revit. The reason they are separate files is because Revit can't export a project linked elements as one IFC. I'm using Python and I haven't installed Qt or OCC as I figured it is unnecessary for this use case. The code I've been trying is this: import ifcopenshell new_file = ifcopenshell.open() old_files = list(map(ifcopenshell.open, [ "wall1.ifc", "wall2.ifc" ])) for old_file in old_files: for inst in old_file: new_file.add(inst)...
Did you manage to get it to work? I'm having trouble copying elements from a file to a new file. My use case is simply combining several files into one IFC, but the resulting IFC always seems faulty when checked in a viewer (have never seen actual geometry in the combined file)