I am struggling to figure out how to write a specific IFCMaterial query for IFC Patch ExtractElements.py recipe in Blender.
I would like to extract the elements with "ALG - BUITENAFWERKING":
I tried the following query with no prevail :
["ALG - BUITENAFWERKING"]
Could anyone direct me in the right direction.
I want to extract only the elements that I need, and load them separately into BlenderBIM. Otherwise the 300 MB .ifc file does not load into BlenderBIM.
The full selected ifc object (*It's another object, but with the same ifcMaterial, that I filter in TrimbleConnect) properties that TrimbleConnect provides are as follows:
Was able to open the extracted element .ifc file with TrimbleConnect.
Could not load the .ifc with BlenderBIM (Maybe if I have given it more time, but in the first minutes the RAM usage would rise to 8 GB, and for the next ~15 minutes the RAM would satay at similar level and CPU usage would be ~17%)
Have you tried enabling advanced mode and also enabling native IFC meshes when loading elements?
The material extraction probably partially worked because only some materials have it directly assigned whereas other have it part of a set. Not sure why the name filter failed. If you send me the file privately at dion@thinkmoult.com I can try to debug it.
Have you tried enabling advanced mode and also enabling native IFC meshes when loading elements?
The material extraction probably partially worked because only some materials have it directly assigned whereas other have it part of a set. Not sure why the name filter failed. If you send me the file privately at dion@thinkmoult.com I can try to debug it.
Thanks for the great tip. I looked up ["BIMVoice — Dealing with Large BIM Models ? Using The BlenderBIM Add-on"]( ""BIMVoice — Dealing with Large BIM Models ? Using The BlenderBIM Add-on"") on how to exactly utilize the Advanced IFC Loading Mode within BlenderBIM.
By disabling the ifc elements that are in tens of thousands I was able to load the single storey ifc file into BlenderBIM.
To my surprise it loaded the whole building (kind of explains the 260 MB vs original 20 storey building 300 MB file size).
I was unable to locate the "enabling native IFC meshes" checkbox/feature, though.
@Saulius, per this commit, you should now be able to extract an object with an IfcMaterial in any type of IfcMaterialDefinition. That is, any ifcmaterial in...
I updated the "selector.py" in "AppData\Roaming\BlenderFoundation\Blender\3.3\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\util" directory and when I am trying to extract IfcMaterial with IFC Patch ExtractElements, Blender keeps throwing errors (at least on the same .ifc model that I have been using):
.IfcMaterial[Name = 'ALG - BUITENAFWERKING']
.IfcMaterial[Name = "ALG - BUITENAFWERKING"]
Is something wrong with the query that I am trying to use?
In TrimbleConnect the IFC Element IfcMaterial looks like this: