PROBLEMS WITH MULTI-LINE FEATURE LABEL USING EXPRESSIONS

PROBLEMS WITH MULTI-LINE FEATURE LABEL USING EXPRESSIONS

dwattersAMXH5
Enthusiast Enthusiast
2,340 Views
5 Replies
Message 1 of 6

PROBLEMS WITH MULTI-LINE FEATURE LABEL USING EXPRESSIONS

dwattersAMXH5
Enthusiast
Enthusiast

I am trying to make a multi-line feature label using expressions. I have tried both of these expressions and yet the expression still will only show as one line.

 

 

Concat (  'FQNID#:  ', FQN_ID  , '\P' , 'LENGTH: ',  CALCULATED ) 

Concat (  'FQNID#:  ', FQN_ID  , '\P LENGTH: ',  CALCULATED ) 

where  FQN_ID and CALCULATED are being pulled in from my shapefile

i have also tried "\n" in place of "\P" and have no change in results. 

 

my feature label is set as MTEXT, set to repeat along a poly line. 

 

I wish to show 
FQNID#: 123456
LENGTH: 1234

 

but what I keep getting is 
FQNID#:123456 LENGTH:1234

 

 

 

AUTOCAD MAP3D 2018

 

 

Thanks for any help!

0 Likes
Accepted solutions (2)
2,341 Views
5 Replies
Replies (5)
Message 2 of 6

kajar
Advocate
Advocate

1.Use "Plain text" for multiline labels

2.Use '\n' for line break

3.Set  label position "Fixed location"

 

Kajar

Message 3 of 6

dwattersAMXH5
Enthusiast
Enthusiast

So I cant use this with repeat position? 

0 Likes
Message 4 of 6

kajar
Advocate
Advocate
Accepted solution

It seems this depends what data type is the source.

Workaround: try to use text as symbol instead using feature labels.

Then you can also set repeat interval for text symbols.

For SQLITE this text symbol trick works but seems not for SHP.

 

Kajar

 

Message 5 of 6

dwattersAMXH5
Enthusiast
Enthusiast
Accepted solution

ok, I'll look into that! 
Thanks so much! 

 

 

*EDIT*
This works for me with shapefiles and being able to set the interval is a huge bonus! 
again, thanks!! 

Message 6 of 6

kajar
Advocate
Advocate

 

Glad this helped you.

 

Kajar

0 Likes