**NDIST****NDIST**, `ND1`

, `ND2`

**Calculates and lists the distance between two nodes.**

`ND1`

First node in distance calculation. If `ND1`

=
P, graphical picking is enabled and all remaining command fields are ignored
(valid only in the GUI).

`ND2`

Second node in distance calculation.

## Notes

**NDIST** lists the distance between nodes `ND1`

and `ND2`

,
as well as the current coordinate system offsets from `ND1`

to `ND2`

,
where the X, Y, and Z locations of `ND1`

are subtracted
from the X, Y, and Z locations of `ND2`

(respectively)
to determine the offsets. **NDIST** is valid in any coordinate
system except toroidal [**CSYS**,3].

**NDIST** returns a variable, called "`_RETURN`

,"
which contains the distance value. You can use this value for various purposes,
such as the calculation of distributed loads. In interactive mode, you can
access this command by using the Model Query Picker (), where you can also access automatic annotation
functions and display the value on your model.

This command is valid in any processor.