KDIST

KDIST, KP1, KP2
Calculates and lists the distance between two keypoints.

Valid Products: Pro | Premium | Enterprise | PrepPost | Solver | AS add-on

KP1

First keypoint in distance calculation. If KP1 = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

KP2

Second keypoint in distance calculation.

Notes

KDIST lists the distance between keypoints KP1 and KP2, as well as the current coordinate system offsets from KP1 to KP2, where the X, Y, and Z locations of KP1 are subtracted from the X, Y, and Z locations of KP2 (respectively) to determine the offsets. KDIST is valid in any coordinate system except toroidal (CSYS,3).

KDIST returns a variable, called "_RETURN," which contains the distance value. You can use this value for various purposes; for example, to set the default number of line divisions to be generated along region boundary lines (ESIZE,_RETURN). In interactive mode, you can access this command by using the Model Query Picker (Utility Menu> List> Picked Entities), where you can also access automatic annotation functions, and display the value on your model.

This command is valid in any processor.

Menu Paths

Main Menu>Preprocessor>Modeling>Check Geom>KP distances