Beruflich Dokumente
Kultur Dokumente
!
Suffii
Marco Polo
Reply With uote Top !otto"
!%-&'-&!& !( PM
0
Re: How to Generate Two Line Lables in ArcMap 10
Are you talkin about displayin multiple !ields on separate
)&
*oin Date(
Posts(
Points(
Answers Pro+ided(
Au- &!!
.
,
&
Scott!
Scott /lankenbeckler
Forum
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
1 of 6 2/28/2014 11:48 AM
lines or one !ield broken up on multiple lines?
$ype 1 would look like this
%&ield1' ()bnewline ( %&ield*'
$ype * is a little harder but would look somethin like this
+iht,%&ield1',-. ( )bnewline ( le!t,%&ield1',-. to break it
up into two lines
/reakin it up e)en !arther would be trickier0
1ersonally I would set up separate !ields with each part o!
the name and o with type 1
Scott /lankenbeckler
0omputer S$stems Anal$st III 1GIS2
#oints: $ %&&& How did this happen'
Reply With uote Top !otto"
!%-&'-&!& !(%. PM
1
Re: How to Generate Two Line Lables in ArcMap 10
Hi Scott
$hanks !or you reply but what I am lookin !or is breakin
a lon strin label into two lines0 &or e2ample let say we
ha)e a !ield "ame which contains a )alue like 3I would 4ike
to 5isplay 4abels in $wo 4ines30As you know ArcMap will
render the label as shown in the table like6 I would 4ike to
5isplay 4abels in $wo 4ines
"ow my 7uestion is how I can display the label like6
I would 4ike to 5isplay
4abels in $wo 4ines
I hope this help
)%
*oin Date(
Posts(
Points(
Answers Pro+ided(
Mar &!&
%,
!
Suffii
Marco Polo
Reply With uote Top !otto"
!%-&,-&!& !3(! AM
8
Re: How to Generate Two Line Lables in ArcMap 10
9se this line o! code in your e2pression !or the label0
le!t,%"ame' ,instr,*0, %"ame' ,3 3.. ( )bnewline ( riht,
)4
*oin Date(
Posts(
Points(
Answers Pro+ided(
Apr &!!
,&.
,5
&&
rborchert
"obert /orc#ert
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
2 of 6 2/28/2014 11:48 AM
%"ame' ,len, %"ame' .:,instr,*0, %"ame' ,3 3...
Substitute %"ame' !or whate)er your labels are based on0
substitute a number !or *0 that is suitable0
the !ormula will look !or the !irst space a!ter *0 characters
and do the top part o! the label with that0 then it will do
the bottom hal! startin where that le!t o!!
or to make is a little more streamlined use this
le!t,%"ame' ,instr,,len,%"ame'..;*, %"ame' ,3 3.. (
)bnewline ( riht, %"ame' ,len, %"ame'
.:,instr,,len,%"ame'..;*, %"ame' ,3 3...
$his will result in the top line bein slihtly loner then the
bottom line as it will look !or the !irst space a!ter the hal!
way point0 <ou can play around with it and i! you increase
the * it will look !or the !irst space earlier than the hal!
way point0 say your line is 100 characters lon0 with a * it
will look !or the !irst space a!ter -0 characters0 i! you use
*0= it will look !or the !irst character a!ter 8= etc0 I! you
lower the * down to 10> it will look !or the !irst space
A&$?+ -@0
it will round up
hope this helps0
+obert
6ri-inall$ Posted b$ Suffii
Hi Scott
T#anks for $ou repl$ but w#at I am lookin- for is
breakin- a lon- strin- label into two lines7 For
e8ample let sa$ we #a+e a field 9ame w#ic# contains
a +alue like :I would Like to Displa$ Labels in Two
Lines:7As $ou know ArcMap will render t#e label as
s#own in t#e table like( I would Like to Displa$
Labels in Two Lines
9ow m$ ;uestion is #ow I can displa$ t#e label like(
I would Like to Displa$
Labels in Two Lines
I #ope t#is #elp
Reply With uote Top !otto"
!%-&,-&!& !3(43 AM
0
).
*oin Date(
Posts(
Points(
Mar &!&
%,
Suffii
Marco Polo
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
3 of 6 2/28/2014 11:48 AM
Re: How to Generate Two Line Lables in ArcMap 10
1er!ect#
$hanks +obert
Answers Pro+ided( !
Reply With uote Top !otto"
!&-&'-&!% !(! AM
0
Re: How to Generate Two Line Lables in ArcMap 10
Hi,
$his is e2actly what I need but IAm unsure o! how to
implement the script0 Bhere do I put it?
IA)e Cust started playin around with labels and there is so
much that can be done#
$hanks in ad)ance
Holly
)'
*oin Date(
Posts(
Points(
Answers Pro+ided(
6ct &!&
&'
!
h(s"ith)*
Holl$ Smit#
Reply With uote Top !otto"
!&-&'-&!% !&(&% AM
0
Re: How to Generate Two Line Lables in ArcMap 10
Got it to work0
I had the ad)anced button ticked so ha)e to enter it like
this6
&unction &ind4abel , %"ame' .
&ind4abel D left([Name] ,instr(10, [Name] ," ")) &
vbnewline & right( [Name] ,len( [Name] )-(instr(10,
[Name] ," ")))
?nd &unction
Holly
),
*oin Date(
Posts(
Points(
Answers Pro+ided(
6ct &!&
&'
!
h(s"ith)*
Holl$ Smit#
Reply With uote Top !otto"
!-'-&!% (!3 PM
0
)5
*oin Date(
Posts(
*ul &!!
4
d+aya"aha
D#anus#ka *a$ama#a
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
4 of 6 2/28/2014 11:48 AM
Re: How to Generate Two Line Lables in ArcMap 10
Hi Guys,
Got the same Euestion, Currently usin the !ollowin to
represent lat and lon )alues on a lable !or points alon a
line
3?3 ( %?$FG' ( 3"3 ( %?$F<'
Any ideas how to represent in two lines0
$hanks in ad)ance
5han
Points(
Answers Pro+ided(
!
!
Reply With uote Top !otto"
!-,-&!% !'(!' AM
0
Re: How to Generate Two Line Lables in ArcMap 10
5id you not read any o! the pre)ious posts?
$ry00
3?3 ( %?$FG' ( vbNewLine ( 3"3 ( %?$F<'
)3
*oin Date(
Posts(
Points(
Answers Pro+ided(
Apr &!!
%45
,3
&'
GS,-ser).
9eil A$res
6ri-inall$ Posted b$ d+aya"aha
Hi Gu$s<
Got t#e same =uestion< 0urrentl$ usin- t#e followin-
to represent lat and lon- +alues on a lable for points
alon- a line
:>: ? @>TABC ? :9: ? @>TADC
An$ ideas #ow to represent in two lines7
T#anks in ad+ance
D#an
Reply With uote Top !otto"
!&-&!-&!4 &(%' PM
0
Re: How to Generate Two Line Lables in ArcMap 10
Bould anyone know how to implement somethin like this
on a dynamic 5ata 5ri)en 1ae Attribute? I ha)e a !ield
)!
*oin Date(
Posts(
Points(
Answers Pro+ided(
Au- &!&
'
!
!
clintoffutt
0lint 6ffutt
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
5 of 6 2/28/2014 11:48 AM
E Pre+ious T#read F 9e8t T#read G
that can )ary !rom -0:-00 characters and want the loner
strins to be displayed on multiple lines, similar to a te2t
bo2 that word wraps0
$hanks,
::clint o
Reply With uote Top !otto"
=uick 9a+i-ation ArcG/S for 0es1top & General Top
How to Generate Two Line Lables in ArcMap 10 http://forums.arcgis.com/threads/53803-How-to-Generate-Two-Line-L...
6 of 6 2/28/2014 11:48 AM