Share

acedGetUnitsConversion Function

C++

bool acedGetUnitsConversion(
    AcDb::UnitsValue blkInsunits, 
    double& conversionFactor
);

File

aced.h

Description

This function computes the conversion factor that blocks and xrefs need to be scaled during insertion to retain their size. For example, if a block that is created using feet as its units is inserted into a drawing with inches as its units, the conversion will be 12.

Returns true if a conversion factor was computed.

Parameters

Parameters Description
blkInsunits Input units that the block is created with.
conversionFactor Output the conversion factor between the block's units and the current drawing's units.

Was this information helpful?