[IfcOpenShell] Get Pset_*Common
Is there a way with the ifcopenshell.api
to get all occurences of all Pset_*Commons?
For example, I want to get the Pset_WallCommon, Pset_WindowCommon, Pset_CoveringCommon, etc
Or is there a way to retrieve these from an .ifc file using ifcopenshell with python?
Tagged:
Comments
I did it like this, but I don't have the feeling this is fool proof:
I know with ifcopenshell it's way easier to use this:
I could also construct a list with IFC products and string contentacate them with
Pset_
andCommon
?Came up with this eventually, just posting it here in case someone has a better idea:
Had a similar conversation over at github. Good to know. Could this be used as part of the section tool for model wide selections by Status (phase)?
https://github.com/IfcOpenShell/IfcOpenShell/issues/2741#issuecomment-1426955540
Coming back from this, this is actually a really stupid method, it creates psets which don't exist
for example:
Can't you use a regular expression, because the propertyset name always starts with 'Pset_' and ends with 'Common'?