Using a field to have text show its own elevation

Using a field to have text show its own elevation

Anonymous
Not applicable
2,867 Views
5 Replies
Message 1 of 6

Using a field to have text show its own elevation

Anonymous
Not applicable


Is it possible to have a field in a text/mtext entity reference its own elevation, we'd like to use this for labeling contours in drawings that aren't utilizing Civil 3D. In theory it seems like it would work but I don't know how or if one can manually edit the field.

0 Likes
2,868 Views
5 Replies
Replies (5)
Message 2 of 6

pendean
Community Legend
Community Legend
It can't reference itself, you need an object point. Or C3D as you observed.
0 Likes
Message 3 of 6

3wood
Advisor
Advisor

There were some discussions in the forum, for example this one:

http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/label-contour-2d-plines-from-elevatio...

 

I think you can do further search and get more interesting ideas from there.

0 Likes
Message 4 of 6

scot-65
Advisor
Advisor
The text object is placed at the desired elevation would work
as DXF 10 has such information (z-axis).

The trick is to be able to have the field find that particular text
object and extract the z-axis and apply to it's text value.

I do not have enough knowledge on how fields work to be
able to help further. If a field can identify extended data,
maybe inject one into the text object?

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 5 of 6

Anonymous
Not applicable

In case anyone else tried to figure this out.

Add a POINT to the block at relevant elevation, then you can select the point and as the Fields Object, with the Position property. This gives you the option to show the X, Y and Z positions. Select only the Z to show elevation.

 

acad_2020-04-23_11-22-19.png

Message 6 of 6

R_Tweed
Advisor
Advisor

@Anonymous  is correct.  I've attached a few examples for you. spot elevation, existing contour label. Something to start with and to show the benefits of a block. See the align action on the contour tag.

0 Likes