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

jameshitt
Collaborator
Collaborator

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

jameshitt
Collaborator
Collaborator

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"

0 Likes
Reply
Accepted solutions (1)
303 Views
2 Replies
Replies (2)

Jeff_M
Consultant
Consultant
Accepted solution
Try this:
{General Segment Length}*.25/{Drawing Scale Conversion}
Jeff_M, also a frequent Swamper
EESignature

jameshitt
Collaborator
Collaborator

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

0 Likes