revit-ifc
revit-ifc copied to clipboard
PR: boolean property set to false is missing in IFC export
Problem Description
Just been delivering a project with an architecture firm working on Revit 2023. They have ceilings. These ceilings have Yes/No (boolean) parameters called things like "FireResistant" or "MoistureResistant". If the parameter is checked (i.e. Yes), I correctly see an IfcBoolean(.T.)
in the IFC property export (using a userdefined property mapping file, which uses "Boolean" as the data type).
However on some ceilings (not all) if the parameter is unchecked (i.e. No), instead of seeing an IfcBoolean(.F.) exported, no property is exported at all. It's completely missing.
Just to clarify: the parameter is Revit is actually unchecked. I.e. the default state of the checkbox is null, but this is explicitly checked, then unchecked again to mark as false. The value is NOT null.
Also to clarify, the exact same data does get exported as IfcBoolean(.F.)
for some ceilings, but not for others. Not sure why it works on some ceilings and not for others.
Revit Version
2023.1.x
IFC for Revit Addon Version
24.x.x
Windows Version
11 22H2