Arch: Small bugfix in ifc exporter

This commit is contained in:
Yorik van Havre
2019-01-10 15:33:53 -02:00
parent a69abb3b75
commit 6ccc239f97

View File

@@ -1403,7 +1403,9 @@ class recycler:
self.spared += 1
return self.propertysinglevalues[key]
else:
c = self.ifcfile.createIfcPropertySingleValue(key,None,ifcfile.create_entity(ptype,pvalue),None)
if isinstance(pvalue,float) and pvalue < 0.000000001: # remove the exp notation that some bim apps hate
pvalue = 0
c = self.ifcfile.createIfcPropertySingleValue(name,None,ifcfile.create_entity(ptype,pvalue),None)
if self.compress:
self.propertysinglevalues[key] = c
return c