mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:42:27 +00:00
IfcCSV now supports setting properties to null values. Neat.
This commit is contained in:
@@ -90,6 +90,10 @@ class IfcAttributeSetter:
|
|||||||
if property.Name != name:
|
if property.Name != name:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if value.lower() in ["null", "none"]:
|
||||||
|
property.NominalValue = None
|
||||||
|
continue
|
||||||
|
|
||||||
# In lieu of loading a map for data casting, we only have four
|
# In lieu of loading a map for data casting, we only have four
|
||||||
# options, which this ugly method will determine.
|
# options, which this ugly method will determine.
|
||||||
if property.NominalValue is None:
|
if property.NominalValue is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user