If you're reading this, we've just migrated servers! If anything looks broken please email dion@thinkmoult.com :)
Getting units from IFC in BlenderBIM
I am reading overallheight from an IFC in Blenderbim but realized that the value varies with the units of the IFC-file. I have seen meters and millimeters but I guess the could be imperial as well. Does somebody know how I can get the units of the IFC-file with python in BlenderBIM?
Tagged:
Comments
How about this?...
FYI, these searches helped me dial into the necessary functions
Thanks a lot. I tried the fuction and among other things got LENGTHUNIT that I guess what I am looking for. The format was #21=IfcSIUnit(,.LENGTHUNIT.,$,.METRE.)
#22=IfcSIUnit(,.AREAUNIT.,$,.SQUARE_METRE.)
#23=IfcSIUnit(*,.VOLUMEUNIT.,$,.CUBIC_METRE.)
#27=IfcConversionBasedUnit(#25,.PLANEANGLEUNIT.,'DEGREE',#26)
...
and I wonder if you know how to call it to get "METRE". Also I wonder what units to expect? Is it MILLI, MILLI METRE or MILLI.METRE and how about imperial units like length of a dead kings foot or wingspan of a bald eagle?
Here's a more refined script that can tell if there's conversion based units, like imperial units, in the file...
Basically just prints out the unit of length.
Also, here's some standard designations for IfcConversionBasedUnit
and here's a list of designations for IfcSIUnitName