// In a conversion based unit the scaling factor, like 0.0283168466 for cubic feet, expresses how many base units make up one conversion based unit.
#1=IFCPROJECT(’00ZhrqZYLBcgy$rVVaiu2B’, $, ’Example project’, $, $, $, $, $, #2);
#2=IFCUNITASSIGNMENT((#6, #7, #10, #13));
#3=IFCSIUNIT(*,.LENGTHUNIT.,.MILLI.,.METRE.);
#4=IFCSIUNIT(*,.AREAUNIT., $,.SQUARE_METRE.);
#5=IFCSIUNIT(*,.VOLUMEUNIT., $,.CUBIC_METRE.);
#6=IFCSIUNIT(*,.TIMEUNIT., $,.SECOND.);
#7=IFCCONVERSIONBASEDUNIT(#9,.LENGTHUNIT., ’INCH’, #8);
#8=IFCMEASUREWITHUNIT(IFCLENGTHMEASURE(25.4), #3);
#9=IFCDIMENSIONALEXPONENTS(1,0,0,0,0,0,0);
#10=IFCCONVERSIONBASEDUNIT(#11,.AREAUNIT., ’SQUARE_FEET’, #12);
#11=IFCDIMENSIONALEXPONENTS(2,0,0,0,0,0,0);
#12=IFCMEASUREWITHUNIT(IFCAREAMEASURE(0.09290304), #4);
#13=IFCCONVERSIONBASEDUNIT(#14,.VOLUMEUNIT., ’CUBIC_FEET’, #15);
#14=IFCDIMENSIONALEXPONENTS(3,0,0,0,0,0,0);
#15=IFCMEASUREWITHUNIT(IFCVOLUMEMEASURE(0.0283168466), #5);
实例三:
// IfcConversionBasedUnitWithOffset is a unit which is converted from another unit by applying a conversion factor and an offset.
#1=IfcConversionBasedUnitWithOffset(IfcDimensionalExponents(0,0,0,0,1,0,0),THERMODYNAMICTEMPERATUREUNIT,
'Fahrenheit',IfcMeasureWithUnit(IfcThermodynamicTemperatureMeasure(1.8),IfcSiUnit(THERMODYNAMICTEMPERATUREUNIT,?,KELVIN)),-459.67);
实例四:
// An example definition of a unit for specific heat capacity (Joule / kg Kelvin), which is defined as a derived unit based on basic SI units
#1=IFCPROJECT(’00ZhrqZYLBcgy$rVVaiu2A’, $, ’Example project’, $, $, $, $, $, #2);
#2=IFCUNITASSIGNMENT((#3, #4, #5, #6, #7, #8, #9, #10));
#3=IFCSIUNIT(*,.LENGTHUNIT.,.MILLI.,.METRE.);
#4=IFCSIUNIT(*,.AREAUNIT., $,.SQUARE_METRE.);
#5=IFCSIUNIT(*,.VOLUMEUNIT., $,.CUBIC_METRE.);
#6=IFCSIUNIT(*,.TIMEUNIT., $,.SECOND.);
#7=IFCSIUNIT(*,.ENERGYUNIT., $,.JOULE.);
#8=IFCSIUNIT(*,.MASSUNIT.,.KILO.,.GRAM.);
#9=IFCSIUNIT(*,.THERMODYNAMICTEMPERATUREUNIT., $,.KELVIN.);
#10=IFCDERIVEDUNIT((#11, #12, #13),.SPECIFICHEATCAPACITYUNIT., $);
#11=IFCDERIVEDUNITELEMENT(#7,1);
#12=IFCDERIVEDUNITELEMENT(#8,-1);
#13=IFCDERIVEDUNITELEMENT(#9,-1);
IFCSIUNIT
具体语义:
IfcSIUnit
-Dimensions: IfcDimensionalExponents
-UnitType: IfcUnitEnum
-Prefix : IfcSIPrefix
-Name : IfcSIUnitName
IfcDimensionalExponents例子说明
A velocity of 2 millimetres per second has a length exponent of 1 and a time exponent of -1. The remaining exponents are equal to 0. 速度为2mm/s的语义:IfcDimensionalExponents(1,0,-1,0,0,0,0)
IFCCONVERSIONBASEDUNIT
具体语义
IfcConversionBasedUnit
-Dimensions: IfcDimensionalExponents
-UnitType: IfcUnitEnum
-Name: IfcLabel Enum //The word, or group of words, by which the conversion based unit is referred to. X
-ConversionFactor: IfcMeasureWithUnit
IfcMeasureWithUnit:
For representing measure value together with its unit on the entity type attribute level; thus overriding the IFC model global unit assignments.
For conversion based unit to give the conversion rate and its base.
具体语义:
IfcMeasureWithUnit
-ValueComponent : IfcValue
-UnitComponent :IfcUnit
IfcConversionBasedUnitWithOffset
具体语义
IfcConversionBasedUnitWithOffset : public IfcConversionBasedUnit
-Dimensions: IfcDimensionalExponents
-UnitType: IfcUnitEnum
-Name: IfcLabel Enum //The word, or group of words, by which the conversion based unit is referred to. X
-ConversionFactor: IfcMeasureWithUnit
-ConversionOffset : IfcReal
IfcConversionBasedUnitWithOffset
IfcConversionBasedUnitWithOffset is a unit which is converted from another unit by applying a conversion factor and an offset.
IfcDerivedUnit
具体语义
IfcDerivedUnit
-Elements : IfcDerivedUnitElement //S[1:?] The group of units and their exponents that define the derived unit. X
-UnitType : IfcDerivedUnitEnum //Name of the derived unit chosen from an enumeration of derived unit types for use in IFC models. X
-UserDefinedType : IfcLabel
IfcDerivedUnitElement
-Unit : IfcNamedUnit //The fixed quantity which is used as the mathematical factor.
-Exponent : INTEGER //The power that is applied to the unit attribute.
IfcDerivedUnitElement 例子
Newtons per square millimetre is a derived unit. It has two elements, Newton whose exponent has a value of 1 and millimetre whose exponent is -2.