Function Entry: DISTOF
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: DISTOF
Name
distof
Class
Conversion Function
Syntax
(distof string [mode])
Arguments and Values
string— stringmode— 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
modevalues as those ofLUNITS:1scientific2decimal3engineering4architectural5fractional
- Autodesk documents
distofandrtosas complementary functions when the same mode conventions are used. - Autodesk documents that modes
3and4are 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.
Source Notes
- [distof (AutoLISP)](https://help.autodesk.com/cloudhelp/2022/ENU/AutoCAD-AutoLISP-Reference/files/GUID-CC0490B9-29BC-44C4-A317-5BAA34B0168E.htm)
- [About String Conversions (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/PLK/AutoCAD-AutoLISP/files/GUID-A38E30D4-684E-44FA-A910-E08522876414.htm)