Exercise 2: Inserting an Expression Into a Label Style

In this exercise, you will insert an expression into an existing label style.

After you set up expressions, they are available in the Properties list in the Text Component Editor so that you can add them to label styles. In effect, expressions become new properties that you can use to compose a label style.

Expressions are unique to a particular label style type. Only those properties that are relevant to the label style type are available in the Expressions dialog box.

This exercise continues from Exercise 1: Creating an Expression.

Insert an expression into a label style

    Note:

    This exercise uses Labels-6a.dwg with the modifications you made in the previous exercise.

  1. In Toolspace, on the Settings tab, expand AlignmentLabel StylesStationGeometry Point. Right-click Additional Details. Click Edit.
  2. In the Label Style Composer dialog box, on the Layout tab, under Text, in the Contents row, click the Value column. Click .
  3. In the Text Component Editor, in the Preview pane, place the cursor on a new line below the last property (True Instantaneous Direction).
  4. Enter the following text, including the space after the colon: MAG: .
  5. On the Properties tab, in the Properties list, select Magnetic Direction, which is the expression you created in Exercise 1: Creating an Expression, at the top of the list.
  6. In the table, ensure that the value for Unit is Degree, and the Format is DD°MM’SS.SS” (unspaced).
  7. Ensure that the cursor in the right window is located just after the Mag: label text. Click to add the magnetic compass direction to the label formula.
  8. Click OK.

    The modified labels appear in the Preview pane of the Label Style Composer dialog box.

  9. In the Label Style Composer dialog box, click OK.
  10. Press Esc to deselect the labels.

    Examine the geometry point labels to see the effect of the expression you added.