To use expressions in labels (Procedure)

Autodesk Expression Builder

 
Using Expressions to Label Features
Concept Procedure
 
 
 

To use expressions in labels

  1. Display the Style Editor for the feature or layer you are labeling.
  2. Under Feature Label, click for the appropriate entry.

    If you are theming this feature, there is one entry for each theme rule. Click the entry for the rule that will display labels.

  3. In the Style Label dialog box, do one of the following:
    • To create a label with multiple lines, select Multiline.
    • To create single-line labels in which text follows the outline of a linear feature, displays a single label even if there are multiple line segments, and the text shrinks to fit the length of the line, select Advanced Placement.

    In either case, you can specify an expression for the content of the label.

  4. To create an expression for the label content, click Property To Display and scroll to the bottom of the list. Click Expression.
  5. In the Create/Modify Expressions dialog box, enter the expression.

    If you selected Multiline, use '\n' to insert a line break. For example, you could place the street name on one line and the street type on another:

    To create multiline labels, use '\n' to insert a line break.

    NoteThe syntax for the CONCAT operator is somewhat complex. It takes only two parameters, and you must nest the functions you use with it when there are multiple parameters. For more information, see Text Functions.
  6. Click OK to apply the expression to the labels.