getProjectUnitConversionFactor

This function will return the conversion factor compared to the base SI unit. The possible unitType values are all enumeration values from enumeration type IfcUnitEnum. For example getProjectUnitConversionFactor(model, "LENGTHUNIT") returns 0.001 in case of MilliMeters. Optional arguments unitPrefix (for example "MILLI"), unitName (if defined) and SIUnitName (for example "METRE") can be requested.

Syntax

public const string ifcenginedll = @"ifcengine.dll";

[DllImport(ifcenginedll, EntryPoint = "getProjectUnitConversionFactor")]
public static extern double getProjectUnitConversionFactor(int_t model, string unitType, out IntPtr unitPrefix, out IntPtr unitName, out IntPtr SIUnitName);

[DllImport(ifcenginedll, EntryPoint = "getProjectUnitConversionFactor")]
public static extern double getProjectUnitConversionFactor(int_t model, byte[] unitType, out IntPtr unitPrefix, out IntPtr unitName, out IntPtr SIUnitName);    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property unitType

Size: 64 bit / 8 byte (reference)
...

Property unitPrefix

Size: 64 bit / 8 byte (reference)
???.

Property unitName

Size: 64 bit / 8 byte (reference)
???.

Property SIUnitName

Size: 64 bit / 8 byte (reference)
???.