mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix bug where you couldn't select properties with a dot in the name for IfcCSV
This commit is contained in:
@@ -199,7 +199,9 @@ class Selector:
|
||||
if key in info:
|
||||
return info[key]
|
||||
elif "." in key:
|
||||
pset_name, prop = key.split(".")
|
||||
key_components = key.split(".")
|
||||
pset_name = key_components[0]
|
||||
prop = ".".join(key_components[1:])
|
||||
psets = ifcopenshell.util.element.get_psets(element)
|
||||
if pset_name in psets and prop in psets[pset_name]:
|
||||
return psets[pset_name][prop]
|
||||
|
||||
Reference in New Issue
Block a user