Keep in mind [as also pointed out by others] that this is a User forum, not the right place to make requests of the product developers, but....
If you use OSNAPZ, you will get only the 2D/XY-plane distance reported. If, as it appears, you want the 2D/XY distance in addition to all the information provided by the current DIST command including the 3D distance and other Z-component-related information, try this:
(defun C:D2 (/ pt1 pt2); = Distance between 2 points only, adding report of 2D/XY-plane distance
(setq
pt1 (getpoint "\nSpecify first point: ")
pt2 (getpoint pt1 "\nSpecify second point: ")
); setq
(command "_.dist" pt1 pt2); report all the usual information
(prompt
(strcat
"Distance in XY plane = "
(rtos (sqrt (+ (expt (- (car pt2) (car pt1)) 2) (expt (- (cadr pt2) (cadr pt1)) 2)))); with thanks to Pythagoras
); strcat
); prompt
(princ)
); defun
I made it a separate command name, because it allows you to use the regular DIST command if you sometimes want its Multiple-points option in newer versions, which I assume would not be relevant here. For the same reason, I had it ask for the points before the DIST command, rather than inside it, so that the User would not see the M option offered. But if you typically don't use the M option, you could Undefine DIST and make a new definition under the regular command name. You could then still get regular DIST with the M option if you occasionally want it, by entering the command name with a preceding period: .DIST
The above has the difference from what you're ideally looking for that a Command: prompt appears between the standard-DIST report and the XY-plane distance report, but that seems a small price to pay to have the information you're after, until they choose [if ever] to alter the regular command's reporting as you would prefer. But if they did, should they also include the distances in the XZ and YZ planes? Those might be just as important to some users as the XY is to you. How about the angle off the YZ plane? At what number of possible things that could be reported does it become too much?
Edited by
Discussion_Admin
Kent Cooper, AIA