Jump to content

Display elevation(Z coordinate) for Topo map


JaJunky

Recommended Posts

I have a bunch of points drawn in CAD 08' and i need to have them labeled with their elevations so I can connect them to make a topo map. The Z coordinates are listed under the properties tab but I need to have each point labeled with the Z coordinate.

 

How can I do this?

Link to comment
Share on other sites

sounds like a lisp routine is needed so that you can just click the point and it labels it using the Z value....Im sure someone will come along and be of more assistance

Link to comment
Share on other sites

  • 9 months later...

Insert>Field>(Field Catergory = Objects) Field name = Object

 

Click the selection object icon

 

Select Point

 

Seclect Property > Position

 

Unselect x and y ticks with only z on

 

Select OK

 

Position the text

Link to comment
Share on other sites

the field idea is really good if you move a point it updates.

 

Anyway here is a lisp it does 1 pt at a time the reason is that it was written to display coggo point within civil3D rather than globaly displaying.

 

;Write the z value of a point
(setq oldsnap (getvar "osmode"))
(setq oldlayer (getvar "clayer"))
(setq oldtxtht (getvar "textsize"))
(command "Layer" "n" "Pointhts" "c" 1 "Pointhts" "s" "pointhts" "")
(setvar  "osmode" 
(setvar "textstyle" "isocp")
(setq pt (getpoint "\nPick survey point   "))  ; get 1 to start
(while (/= pt nil)
;(repeat 50
(setq x (car pt))
(setq y (cadr pt))
(setq z (caddr pt))
(setq zed (rtos z 2 3))
(command "text" pt 0.25 0 zed )
(setq pt (getpoint "\nPick survey point press enter to exit "))  ;can bomb out here ok
) ; end while
; put on error here for when bombs
(setvar "osmode" oldsnap)  ;resets so if bomb now is as it was before starting
(setvar "clayer" oldlayer)
(setvar "textsize" oldtxtht )
(princ )

 

You can change it to do a selection and label lots all in one go change the while

Link to comment
Share on other sites

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