mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +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:
|
||||
continue
|
||||
|
||||
if value.lower() in ["null", "none"]:
|
||||
property.NominalValue = None
|
||||
continue
|
||||
|
||||
# In lieu of loading a map for data casting, we only have four
|
||||
# options, which this ugly method will determine.
|
||||
if property.NominalValue is None:
|
||||
|
||||
Reference in New Issue
Block a user