T
by tobenz on 26 Jul 2021, edited 3 Aug 2021
#
I'm trying to write a few IFC checks with the bimtester tool, and for simple tests it already works pretty good!
However, I am stuck at writing more elabourate tests including queries and regular expressions. As I understand, I can "categorize" certain elements with the "referred to as" statement. As a query for that I tried the selector syntax but failed.
* The elements defined by ".IfcWall[Pset_WallCommon.Description = "concrete"]" are referred to as myConcreteWall
* All myConcreteWall elements have a myPset.mylocation property matching "/inside|outside/"
Any hint how to solve this?
M
by Moult on 3 Aug 2021
#
From memory, this "referred to" grouping feature is not currently implemented. Would you like to help implement it? Alternatively, check out the upcoming work with the IDS standard by @ATomczak .
A
by ATomczak on 3 Aug 2021
#
Hi @tobenz! With IfcOpenShell implementation of IDS you can use regular expressions (xml restriction patterns). Have a look at the example in the test file. Let me know if you need help or discover any errors.
T
by tobenz on 3 Aug 2021
#
+1 votes
Hi @ATomczak, thanks for pinging me. Actually, I could not wait and fixed the regex stuff myself :). Was my first commit. But I'm eager to learn more about your work on IDS!