getUnitInstanceConversionFactorW

This function will return the conversion factor compared to the base SI unit. The unitType is derived from the instance. For example getUnitInstanceConversionFactorW(myInstance) returns 0.001 in case of MilliMeters if the instance defines a length unit. Optional arguments unitType (for example L"LENGTHUNIT"), unitPrefix (for example L"MILLI"), unitName (if defined) and SIUnitName (for example L"METRE") can be requested.

Syntax

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

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

Property unitInstance

Size: 32 bit / 4 byte (value)
???.

Property unitType

Size: 32 bit / 4 byte (reference)
???.

Property unitPrefix

Size: 32 bit / 4 byte (reference)
???.

Property unitName

Size: 32 bit / 4 byte (reference)
???.

Property SIUnitName

Size: 32 bit / 4 byte (reference)
???.