Function Entry: DISTOF

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: DISTOF

Name

distof

Class

Conversion Function

Syntax

(distof string [mode])

Arguments and Values

  • string — string
  • mode — optional integer linear-unit selector

Description

Converts a distance string to a numeric distance value.

Return Values

Real number if successful; otherwise nil.

Compatibility

Part of host-oriented unit parsing semantics.

Notes

  • Autodesk documents the accepted mode values as those of LUNITS:
    • 1 scientific
    • 2 decimal
    • 3 engineering
    • 4 architectural
    • 5 fractional
  • Autodesk documents distof and rtos as complementary functions when the same mode conventions are used.
  • Autodesk documents that modes 3 and 4 are parsed equivalently: engineering and architectural input forms are both accepted for either of those mode values.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.