Function Entry: DISTANCE

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

Function Entry: DISTANCE

Name

distance

Class

Function

Syntax

(distance pt1 pt2)

Arguments and Values

  • pt1, pt2: points

Description

Returns the distance between two points.

Return Values

Real.

Side Effects

None.

Exceptional Situations

Erroneous for invalid point arguments.

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.

Notes

  • Autodesk documents that if either argument is a 2D point, the function ignores any Z coordinates and returns the 2D distance projected into the current construction plane.