IfcCSV now supports setting properties to null values. Neat.

This commit is contained in:
Dion Moult
2021-10-13 12:18:29 +11:00
parent 292cbf55ad
commit 0c6a3eafd2
+4
View File
@@ -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: