From 0c6a3eafd2a93ec985f5a3540ee75f7c78347e3a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 13 Oct 2021 12:18:29 +1100 Subject: [PATCH] IfcCSV now supports setting properties to null values. Neat. --- src/ifccsv/ifccsv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifccsv/ifccsv.py b/src/ifccsv/ifccsv.py index f1ced2f432..95ee76ac6b 100755 --- a/src/ifccsv/ifccsv.py +++ b/src/ifccsv/ifccsv.py @@ -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: