xBimTeam / XbimExchange

XbimExchange contains several COBie schemas and serialisation functions as well as the Model Validation library adopted by theNBS digital toolkit.
https://xbimteam.github.io/
Other
46 stars 42 forks source link

IFCQUANTITYLENGTH x IFCSIUNIT #40

Closed BrunoMBuzzi closed 5 years ago

BrunoMBuzzi commented 5 years ago

Hello everyone,

I have an IIfcProduct object, let's say this given product have the following quantities:

4350= IFCQUANTITYLENGTH('Depth','',$,14.);

4351= IFCQUANTITYLENGTH('Height','',$,59.9999999999998);

4352= IFCQUANTITYLENGTH('Width','',$,51.0005334674172);

And I have the following units on the IFC file:

42= IFCSIUNIT(*,.LENGTHUNIT.,.CENTI.,.METRE.);

43= IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);

64= IFCSIUNIT(*,.LENGTHUNIT.,.DECI.,.METRE.);

How do I know which IFCSIUNIT belongs to each quantity using the IIfcProduct object?

Thanks, Bruno.

image

andyward commented 5 years ago

There's an optional Unit attribute on the IfcQuantityLength http://www.buildingsmart-tech.org/ifc/IFC4/final/html/schema/ifcquantityresource/lexical/ifcquantitylength.htm

Where it's not set, you can infer the default length unit from the the IfcProject/IfcContext