Files
IfcOpenShell/src/ifcopenshell-python
Petru Conduraru 941a87e8a9 selector: fail safe instead of silently corrupting on ambiguous dotted keys
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.
2026-07-21 11:27:20 +03:00
..
2026-07-19 18:47:57 +01:00

ifcopenshell-python

Python bindings, utility functions, and high-level API for IfcOpenShell.