Jump to content

Recommended Posts

Posted

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?

Posted

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)
)

Posted

Thanks, I'll give it a shot. It's not just my computer, 3 others in my office have the same results.

Posted

Maybe it's a 2010 thing...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...