Man I hope I typed out the title of this thread correctly!
I'm trying to display multiple label fields like the one in the first image. The feature class is underground nap in the splice closure layer. I want to show the enc_size and fiberassignments as labels for the underground nap. How do I do this? I tired reading all kinds of resources on labeling and annotation but I'm falling short on understanding how the hell to do this! I provided my MXD in the second image.
Thanks for the help!
You posted this in GeoNet help which is for questions about using GeoNet. You might want to move this to the GIS place or somewhere to get a better response.
The answer to your question is you have to build a label expression. In VB it would look something like this:
[field1] &"/"& [field2]
You would then set the labels to stack and force split using the / character.
ArcGIS Help 10.1
If the link doesn't work, google arcgis stack labels.
-Steven
Not sure I understand your question, but if you want to stack the labels you will need to use an expression, such as one of the examples shown here:
Building label expressions—Help | ArcGIS for Desktop
Select the Label tab from Layer Properties, click the Expression button, and enter the expression in the Expression box on the lower half of the window. For example, the vbscript expression
[NAME] & vbCrLf& [ADDRESS_1] & vbCrLf& [ADDRESS_2]
Would create a label that looks like this:
Name
Address_1
Address_2
Hi Katherine,
Under Layer Properties>Labels>Expression, you can stack labels by using either a python or VB expression.
Python Example
[field1] + "\n" + [field2]
If either of your fields are numeric, you may need to make it like this
str([field1]) + "\n" + str([field2])
the \n is a carriage return string that makes a new line for the second field value.
In the labels tab open the Expression tab.
Assuming your field doesn't include the text "Size", you'll need to add that as well. The following should be entered into the expression box.
[fiberassignments] & " " & "Size: " & [enc_size]
If you have Maplex label engine you can add special characters within parentheses to force stacking of labels. You can set which characters to force stacking and set visibility of those characters and stacking behavior under the Fitting Strategy tab under the Placement Properties.
Good luck.
Ooops, my bad...thanks!
I keep getting an error message that says "No features found. Could not verify expression"
Are you constructing your expression using the list of available fields in the box above? Are your field names enclosed in brackets? Are you including the "&" character between each field name?
My expression looks like this:
[ENC_SIZE] "&" [FIBERASSIGNMENTS]
My field spellings are correct and are capitalized in the attribute table.
Based on the info you provided, this expression should work:
[fiberassignments] & vbCrLf & "Size: " & [enc_size]
vbCrLf
remove the parenthesis surrounding the & symbol. Keep in mind that this
will put your text together without a space. Try the following to keep the
text from running together.
& " " &
" I want to show the enc_size and fiberassignments as labels for the underground nap."
[fiberassignments] & " " & vbnewline & "Size: " & [enc_size]
Sorry you don't need the space " "
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.