Closed maximelefrancois86 closed 1 year ago
May I see the generated IFC file? (rvt/MINES_TCE_DOE_2021.rvt was missing here: https://github.com/maximelefrancois86/databat-kgc-revit/tree/main/rvt)
If you provide me the IFC file, I can deep dive in the IFC STEP file and test and see manually where the data comes from.
So, the IFC element with GUID: 0LVIjSJbjBZw1Vj0TYSS5W had: inst:door_157d2b5c-4e5b-4b8f-a05f-b4076271c160 props:width_simple "1"^^xsd:decimal ; props:volume_simple "0"^^xsd:decimal ;
In the EMSE_EF.ifc the element is specified in the following line:
Parsing it manually:
#2743361= IFCPROPERTYSET('0LVIjSJbjBZw1ViXDYSS5W',#48,'Constraints',$,(#889913));
#2743367= IFCPROPERTYSET('0LVIjSJbjBZw1ViWLYSS5W',#48,'Dimensions',$,(#2743355,#2743356,#2743357,#2743358));
#2743355= IFCPROPERTYSINGLEVALUE('Area',$,IFCAREAMEASURE(3.80814945466591),$);
#2743356= IFCPROPERTYSINGLEVALUE('Height',$,IFCLENGTHMEASURE(2.44003103740285),$);
#2743357= IFCPROPERTYSINGLEVALUE('Volume',$,IFCVOLUMEMEASURE(0.0841432645576288),$);
#2743358= IFCPROPERTYSINGLEVALUE('Width',$,IFCLENGTHMEASURE(1.56069713716399),$);
ifcOWL: inst:IfcPropertySingleValue_2743358 rdf:type ifc:IfcPropertySingleValue . inst:IfcPropertySingleValue_2743358 ifc:name_IfcProperty inst:IfcIdentifier_583006 .
inst:IfcPropertySingleValue_2743458 ifc:name_IfcProperty inst:IfcIdentifier_583006 . inst:IfcPropertySingleValue_2743458 ifc:nominalValue_IfcPropertySingleValue inst:IfcLengthMeasure_854818 .
inst:IfcLengthMeasure_854818 rdf:type ifc:IfcLengthMeasure . inst:IfcLengthMeasure_854818 express:hasDouble "1.56069713716399"^^xsd:double .
Code: value = ifcowl_model.createTypedLiteral(value.asLiteral().getDouble(), XSD.decimal.getURI().toString());
Property value 1 for [Width] was: 1.56069713716399^^http://www.w3.org/2001/XMLSchema#double Property value 2 for [Width] was: 1^^http://www.w3.org/2001/XMLSchema#decimal
Correction: value = ifcowl_model.createTypedLiteral(BigDecimal.valueOf(value.asLiteral().getDouble()), XSD.decimal.getURI().toString());
Property value 1 for [Width] was: 0.560031037402852^^http://www.w3.org/2001/XMLSchema#double Property value 2 for [Width] was: 0.560031037402852^^http://www.w3.org/2001/XMLSchema#decimal
Correct.
Thanks. Is this solved in a specific commit ? For example #bbf377fa7ba9f180fd96a74e6936c7cf4e84c7f6 ?
Some quantity values are floored somewhere in the the Revit-to-IFC-to-LBD conversion.
Apologies if it's not related to IFC-to-LBD.
Documented as part of Isaac Fatokun, Arun Raveendran Nair, Thamer Mecharnia, Maxime Lefrançois, Victor Charpenay, Fabien Badeig and Antoine Zimmermann, (2023) "Modular Knowledge integration for Smart Building Digital Twins", LDAC 2023
Section 5.1, item 5_readSchedules.py, sub-item (iv).
To Reproduce
See https://github.com/maximelefrancois86/databat-kgc-revit for steps to reproduce the issue
Expected behavior
For example the following properties are floored:
We transform them as:
Versions