IFClite TypeScript API
    Preparing search index...

    Function toNativeLength

    • Convert a metre value to the anchor's native length unit for STEP emit. Rounded to 9 decimals to absorb the float noise the division introduces (2.8 / 0.001 = 2799.9999999999995 → 2800).

      Takes only { lengthUnitScale } rather than a full SpatialAnchor so narrower anchor shapes (e.g. drawing-markup.ts's MarkupAnchor, which has no bodyContextId/axisContextId/storeyId — markup geometry has no use for them) can share this one conversion instead of re-implementing it.

      Parameters

      Returns number