mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
941a87e8a9
An unquoted query segment like "Foo.Bar.Baz" is ambiguous whenever a pset is literally named "Foo.Bar" (see #6937, ifccsv spreadsheet export/import). get_element_value already returned None for the simple case, but if a shorter, coincidentally-named pset/property also existed (e.g. pset "Foo" with property "Bar"), it silently returned that unrelated value instead. set_element_value had the same problem in reverse: it silently wrote into the wrong property/pset rather than reporting the extra unresolved key. Both now fail safely (None / a raised SetElementValueException) so bad data is never produced. The documented quoted/regex query forms already round-trip correctly and are unaffected. ifccsv now catches that exception per-column so one unresolved query doesn't abort the whole import. Generated with the assistance of an AI coding tool.
ifcopenshell-python
Python bindings, utility functions, and high-level API for IfcOpenShell.