Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Expression for line label - percent of segment length for x-offset

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jameshitt
284 Views, 2 Replies

Expression for line label - percent of segment length for x-offset

A simple expression that I'm using to set the x-offset for a line segment label doesn't behave as expected. The goal is to have the label text be placed at 1/4 the segment length from the end of the segment. Its a simple expression: {General Segment Length}*.25, but when actually using the expression in the x-offset of the label style, it shoots the label way far out beyond the segment itself.

Drawing is attached. The style has the offset at "0.00" but when you place the expression in its  place, the problem occurs. Any ideas?

Edit: The expression is named ".25xLength"

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: jameshitt

Try this:
{General Segment Length}*.25/{Drawing Scale Conversion}
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
jameshitt
in reply to: jameshitt

*face palm* Of course. I always forget about the difference between model and layout units when I'm experimenting with styles. Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report