×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to Display Contour Elevations??

How to Display Contour Elevations??

How to Display Contour Elevations??

(OP)
I have a contour .dwg file and the contours are made up of many polylines with the given elevation.  The elevation is in the Properties Dialog under the Geometry heading.  It seems like it should be very easy to display this attribute (or feature - correct terminology?) for all the polylines.

Am I missing something simple?

RE: How to Display Contour Elevations??

Do you mean show it on the drawing or just when you look it up?

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: How to Display Contour Elevations??

(OP)
I mean display it on the drawing.  

I know the data is in the properties.  In one drawing it's under the geometry, in another it's part of an OD: (which I assume is an outside database)

thanks

RE: How to Display Contour Elevations??

You can do it programmatically. Are you handy with this at all?

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: How to Display Contour Elevations??

(OP)
Probably not, but I would give it a try to get my contours labeled!

RE: How to Display Contour Elevations??

You will need to post a dwg or portion of your dwg so we can begin to query it for info. Make a link to it for us.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: How to Display Contour Elevations??

I don't think that you mean that the elevation values are in the properties dialogue box.  The elevation values should be in their own layer.  With that said, then when you open the properties dialogue box on anyone of the elevation values you will note a specific format and related information geared for  that particular elevation value.  

If you used the text command to type out the elevation values, the properties dialogue box will a somewhat different format and obviously related  information for that text.  Normally, you would use a text command and not an attributed block to type the elevation values but it could be done without difficulty.   

Properties dialogue box will not have quiet the same format for drawn objects, attributed blocks, texts, X-xrefs and groups.

RE: How to Display Contour Elevations??

Here's a lisp routine I use for labeling contours:

CODE

;Matches elevation of source object to selected entities

(defun c:lc ()
    (setq th (getvar "textsize")
          ts (getvar "textstyle")
          cl (getvar "clayer")
    )        
    (setq e1 (entget (car (entsel "Pick source object: "))))
      (setq txt1(rtos (dxf 38 e1) 2 0))
    
    (setvar "osmode" 512)
    (setq p1 (getpoint "Pick location for label: "))
        (setvar "osmode" 16384)
        
    (setq a1 (rtd(getangle "Specify angle of label: " p1)))

      (setvar "clayer" "FG-CONT-ELEV")

    (command "text" "s" "SIMPLEX" "M" P1 (* 0.1(GETVAR "DIMSCALE")) a1 txt1)

      (setvar "textsize" th)
    (setvar    "textstyle" ts)
    (setvar    "clayer" cl)
    
    (PRINC)    
    
       )

A layer FG-CONT-ELEV and a text style SIMPLEX w/ 0 height should be in the drawing before use. Revise to suit your needs.

____________________
Acad2005, Terramodel

RE: How to Display Contour Elevations??

Oops... ignore the comment at the top of the code. It should read ;Labels contours using the polyline's elevation

____________________
Acad2005, Terramodel

RE: How to Display Contour Elevations??

Another alternative within LandDesktop (assuming you have LDD) is to use:

Terrain, Contour Labels, and either Interior or Group Interior.

Set the desired layer for the contour elevations current, and you can also play with the label settings.

Then just point and click to get the labels.

RE: How to Display Contour Elevations??

You could also make a custom linetype with the elevation text in the definition - then the elevation would display along the polyline

RE: How to Display Contour Elevations??

IFR you could do what you said but then how would you change elevation values from one countour line to the next?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources