import ifcopenshell.util.element
print(ifcopenshell.util.element.get_psets(myslab))
returns a dictionary which looks like this ...
`
{'AllplanAttributes': {'Umbaukategorie': 'Neubau', 'Gewerk': 'Betonarbeiten', 'Bezeichnung': 'Plattenfundament', 'Material Statik': 'NPK-C_WDB', 'Erdreich': 'yes', 'Festigkeitsklasse Beton': 'Ph_41', 'Betonzusätze': 'Ph_41', 'Bautaktung': 'Ph_51', 'Oberfächenbehandlung': 'Ph_41', 'Allright_Bauteil_ID': '1305PFu0000000010', 'Einheit': 'm³'}, 'GI^U': {'Tragendes Bauteil': True, 'Aussenbauteil': True, 'Geschoss': '01.UG_FBOK', 'Typenname': 'C1_BP_Ortbeton_XXXX', 'Gebäude': 'Spiserstrasse', 'Bewehrungsgehalt': '120', 'Schalungstyp': '2', 'Teilprojekt': 'Leutwyler', 'Dichtigkeitsklasse': 'DK2', 'Lastanforderungen': '5.0 kN/m2', 'eBKP-H': 'C 1.5', 'BKP': '211.5'}, 'GU_Material': {'Material': 'Ortbeton'}, 'GU_Mengen': {'Breite': 0.0, 'Dicke': 16.3827, 'Höhe': 0.35, 'Fläche': 311.1078, 'Länge': 18.99, 'Volumen': 108.8877}}
`
In the dictionary the property values are Python class types String, Int, Float, Bool. Is there some method do get the IFC type of property as IfcText
or IfcReal
or whatever it was in the ifc file directly (similar to the get_psets) without do all the property parsing myself once again?
BTW: AFAIR there have been versions of get_psets which did return the value type too?
cheers bernd