cdi - Calculate distance

Name

cdi — Calculate distance

Syntax

cdi [use]

Description

Calculate distance between the two last cursor positions or of the line dataset in active. Reports in the message area both xy distance and xyz distance. The accumulated 2d distance can be transferred to a Tcl variable: set dis [gvar var] . The accumulated 3d distance can be transferred to a Tcl variable: set dis [gvar distance] . The distance is also written out in the message area in the lower toolbar.

Clicking in 2D mode will always write out the distance to the previous cursor position in the message area in the lower toolbar. Also the x and y coordinates are written out.

All calculations are done by assuming the coordinates to be right angled. For calculation of distances in different projections use the appropriate command object.

Arguments

No argument. Will calculate the distance between the two last cursor positions.

use

Will calculate the distance length of the dataset in active, for each cell and totally.

See also

mak lin dis,

Â