About IfcPatch (ExtractElements) in BBIM 230902
Hi all,
I'm testing IfcPatch (ExtractElements) in BBIM 230902 (with a particular user pset property) without success.
I try the same (with the same ifc file) in BBIM 230701 with good results. The query I use is like this:
IfcElement[PSET_Name.PSET_Property ="EST"] and get expected objects.
In BBIM 230902 results are good if in query fiels on IfcPatch tab I put only the class (that is ifcWall, IfcSlab, etc.). When I add user pset properties, result file is created but without elements.
I tryed put commas in query (that is IfcElement["PSET_Name"."PSET_Property" ="EST"] ) with the same result.
Comments
Not a 100%, but it could be due to the fact that IfcPatch uses the new facet selector syntax now.
https://github.com/IfcOpenShell/IfcOpenShell/commit/a3fd169bb6edf10ac1a3c3abc516f3490adbc6b5
see here:
https://blenderbim.org/docs-python/ifcopenshell-python/selector_syntax.html
@theoryshaw thanks for the comment,
this query worked in BBIM 230902:
IfcElement, PSET_Name.PSET_ Property=EST ("EST" is my search strint)
I'm trying to extract some elements with pset user data using IfcPatch/Recipes/ExtractElement, following the syntax of: https://docs.ifcopenshell.org/ifcopenshell-python/selector_syntax.html, but I get a file with no data.

I'm sure I'm doing something wrong, but I don't know what.
@BimETS,
some samples here works for me ( ACAT_Identificacio.ACAT_.... are user psets):
IfcBuildingElementProxy, ACAT_Identificacio.ACAT_I3-TipusNom=/Lin*/
IfcElement, ACAT_Identificacio.ACAT_I4-Subsistema=OL + IfcBuildingElementProxy, Name=/Base_E-[0-9]{1}/
IfcElement, ACAT_Identificacio.ACAT_I4-Subsistema = OL + IfcBuildingElementProxy, ACAT_Identificacio.ACAT_I4-Subsistema=999999
Make sure that the pset values are correct (it is really "False", not 0) and try with a more generic element (IfcElement) to see if the problem is caused by IfcTrackElement
Thanks @avico, I show you my tests:
IfcElement,ETS_U_SEG.ETS_U_U_SEG_01_Executed=False, and it does not work.
IfcElement,ETS_CLA.ETS_CLA_06_CodFuncRIH=‘FUN.VIA.030.030’ and it doesn't work either.😩
In you can share your model I can try. Now I'm using BBim-addon_24-06-02
I use bonsai. But not to start a new discussion I have continued in this one. I think I should have started a new one. Sorry for confusing you.
I am attaching the model, which is a type section that I use for tinkering, you can also download it from
https://www.ets-rfv.euskadi.eus/ets-medodologia-bim/webets00-general/es/
I think the problem comes from the fact that the property "ETS_U_SEG_01_Ejecutado" is defined as IFCBOOLEAN and the syntax will be different (I don't know which one) or it simply doesn't understand it.
In the properties defined as IFCTEXT the extraction works correctly:
IfcElement, ETS_CLA.ETS_CLA_07_CodFuncRIH=/FUN.VIA.030.030/ extract the sleepers
IfcElement, ETS_CLA.ETS_CLA_07_CodFuncRIH=/FUN.VIA.010.010/ extracts the rails
Thank you very much for your help. I was desperate
@avico I did a test with the ifcBoolean and you have to put true or false in capital letters. I did a test with the boolen and you have to put TRUE or FALSE in capital letters. And it works!
IfcElement, ETS_U_SEG.ETS_U_SEG_01_Ejecutado=FALSE