getProjectUnitConversionFactorW

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 getProjectUnitConversionFactorW(model, L"LENGTHUNIT") returns 0.001 in case of MilliMeters. Optional arguments unitPrefix (for example L"MILLI"), unitName (if defined) and SIUnitName (for example L"METRE") can be requested.

Syntax

//
//   Strong typing definition
//
double                      getProjectUnitConversionFactorW(
                                    SdaiModel               model,
                                    const wchar_t           * unitType,
                                    const wchar_t           ** unitPrefix,
                                    const wchar_t           ** unitName,
                                    const wchar_t           ** SIUnitName
                                );

static  inline  double  getProjectUnitConversionFactorW(
                                SdaiModel               model,
                                wchar_t                 * unitType,
                                wchar_t                 ** unitPrefix,
                                wchar_t                 ** unitName,
                                wchar_t                 ** SIUnitName
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    (const wchar_t*) unitType,
                    (const wchar_t**) unitPrefix,
                    (const wchar_t**) unitName,
                    (const wchar_t**) SIUnitName
                );
}

static  inline  double  getProjectUnitConversionFactorW(
                                SdaiModel               model,
                                const wchar_t           * unitType
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    unitType,
                    (const wchar_t**) nullptr,          //    unitPrefix
                    (const wchar_t**) nullptr,          //    unitName
                    (const wchar_t**) nullptr           //    SIUnitName
                );
}

static  inline  double  getProjectUnitConversionFactorW(
                                SdaiModel               model,
                                wchar_t                 * unitType
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    (const wchar_t*) unitType
                );
}


//
//   Weak typing definition
//
double  __declspec(dllexport) __stdcall getProjectUnitConversionFactorW(
                                                int_t                   model,
                                                const wchar_t           * unitType,
                                                const wchar_t           ** unitPrefix,
                                                const wchar_t           ** unitName,
                                                const wchar_t           ** SIUnitName
                                            );

static  inline  double  getProjectUnitConversionFactorW(
                                int_t                   model,
                                wchar_t                 * unitType,
                                wchar_t                 ** unitPrefix,
                                wchar_t                 ** unitName,
                                wchar_t                 ** SIUnitName
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    (const wchar_t*) unitType,
                    (const wchar_t**) unitPrefix,
                    (const wchar_t**) unitName,
                    (const wchar_t**) SIUnitName
                );
}

static  inline  double  getProjectUnitConversionFactorW(
                                int_t                   model,
                                const wchar_t           * unitType
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    unitType,
                    (const wchar_t**) nullptr,          //    unitPrefix
                    (const wchar_t**) nullptr,          //    unitName
                    (const wchar_t**) nullptr           //    SIUnitName
                );
}

static  inline  double  getProjectUnitConversionFactorW(
                                int_t                   model,
                                wchar_t                 * unitType
                            )
{
    return  getProjectUnitConversionFactorW(
                    model,
                    (const wchar_t*) unitType
                );
}
    

Property model

Size: 32 bit / 4 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: 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)
???.