mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 18:16:20 +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:
|
if key in info:
|
||||||
return info[key]
|
return info[key]
|
||||||
elif "." in 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)
|
psets = ifcopenshell.util.element.get_psets(element)
|
||||||
if pset_name in psets and prop in psets[pset_name]:
|
if pset_name in psets and prop in psets[pset_name]:
|
||||||
return psets[pset_name][prop]
|
return psets[pset_name][prop]
|
||||||
|
|||||||
Reference in New Issue
Block a user