Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Display Contour Elevations??

Status
Not open for further replies.

esass13

Civil/Environmental
Sep 14, 2004
41
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?
 
Replies continue below

Recommended for you

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

"Everybody is ignorant, only on different subjects." — Will Rogers
 
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
 
You can do it programmatically. Are you handy with this at all?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
Probably not, but I would give it a try to get my contours labeled!
 
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
 
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.
 
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
 
Oops... ignore the comment at the top of the code. It should read ;Labels contours using the polyline's elevation

____________________
Acad2005, Terramodel
 
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.
 
You could also make a custom linetype with the elevation text in the definition - then the elevation would display along the polyline
 
IFR you could do what you said but then how would you change elevation values from one countour line to the next?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor