S
by Samppa on 22 Mar 2025, edited 26 Mar 2025
#
I have one door in my BBIM Ifc file that has a global id but no 3d geomery. I can see it in my exported door schedule and from there I can see its global id. And it can be found with search but because it has no 3D representation I can't delete it.
It can be found in BIMvision too (no 3d geometry there either).
I tried from Quality and coordination tab Debug tool named "Search Active Drawing for Failing Elements" but there was nothing to be found with it.
How can I get rid of it?
M
by Massimo on 22 Mar 2025
#
Can you find it in the outliner?
You could also use 3-4 lines of code to do that
S
by steverugi on 23 Mar 2025
#
+3 votes
@Massimo
You could also use 3-4 lines of code to do that
like this?
from ifcopenshell.api import root
from bonsai import tool
model = tool.Ifc.get()
alien = model.by_id(insert GUID here)
root.remove_product(model, product=alien)
M
by Moult on 23 Mar 2025
#
+2 votes
I'd prefer not to use scripting for this. Can you share your IFC and file a bug? You should be able to delete it using the interface.
S
by Samppa on 24 Mar 2025
#
+2 votes
I tested the script and was able to remove it by its GUID. After that (maybe for some other reason than the script) there was an error which prevented saving the file. So I reverted to older version and after saving the file with new name I was able to delete this "invisible" door. I'll check the old file if I can reproduce this possible bug.
A
by Andrej730 on 26 Mar 2025
#
+5 votes
As Dion said, this indicates some other issue that needs to be addressed, as usually there is no way that IfcDoor is not loaded from IFC file.
And note that if you edit IFC file using scripts, make sure to save it as IFC file directly from the script (ifc_file.write
), NOT using Bonsai save - when you edit IFC file manually Bonsai Blender environment goes out of sync with IFC file and the consequences are unpredictable. Also make sure to use fresh Bonsai session (or just save in Bonsai) before using some script, to make sure there are no pending changes in Bonsai that would be applied on save