JeStoneIV Posted March 4, 2010 Posted March 4, 2010 I need our points to use point elevation for when drawing lines and 3d polylines, however, I need to be able to check the distances between points, not the slope distances. I set the variable OSNAPZ to 1 which is supposed to use the elevation of the UCS (which is set to 0.00), but instead when I take a distance it uses the elevation of 0.00' for the first point I select (using node) and the point elevation of the second point (using node) which is the slope distance. When I draw a line between the points with OSNAPZ 1 it is flat at elevation 0.00'. Is this a Civil 3d problem or is there something I am missing? Quote
lpseifert Posted March 4, 2010 Posted March 4, 2010 That's odd... when I set Osnapz=1 and use Dist between two points I get the horizontal distance, not the slope. If you want, you could try this. I wrote it before the Osnapz variable was introduced. ;; returns horizontal distance regardless of z values LPS 2008 (defun c:di (/ pt1 pt2) (setq pt1 (getpoint "\nHorDistance Pick first point: ") pt2 (getpoint "\nPick end point: " pt1) pt1 (list (car pt1) (cadr pt1)) pt2 (list (car pt2) (cadr pt2))) (princ (strcat "\nHorizontal distance = " (rtos (distance pt1 pt2) 2 2) "'")) (princ) ) Quote
JeStoneIV Posted March 4, 2010 Author Posted March 4, 2010 Thanks, I'll give it a shot. It's not just my computer, 3 others in my office have the same results. Quote
alanjt Posted March 4, 2010 Posted March 4, 2010 Give my DIST replacement routine a whirl. http://www.cadtutor.net/forum/showthread.php?t=42128 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.