Use the Text Component Editor to format and define text-for-each components for a variety of object types.
Text-for-each components label each object associated with a parent object (the object you are labeling). For example, you can use a text-for-each component in a structure label style to include labels for pipes associated with that structure. These components are only used in structure label styles and structure tables.
Text-for-each components are formatted just like text components, except that you select which child objects to label when you first create a text-for-each component. For example, you can add labels for all the pipes that enter or exit a structure, or only for invert-in or invert-out pipes. These label components are dynamic, so that if you remove or add a child object, the labels are updated.
The following shows an example of a structure label where the first three lines of the label contain structure data. The last three lines of the label contain data about the pipes that connect to the structure:
You would set up this label style by including two text-for-each components. One component is for all pipes in, which lists invert in values. The other component is for all pipes out, which lists the one invert out value.
To create a text-for-each component
- In the Label Style Composer dialog box, click the Layout tab.
- Click the Down arrow in
, and then click
. - In the Select Type dialog box, select the type of data to include in the text-for-each component and click OK.
- Set up the other Layout settings the text-for-each component using the same settings that are available for text components.
For example, if you are setting up a label for invert in pipes, you could use the Text Component Editor to add static text (INV. IN =), and also add a dynamic property field that labels the pipe elevation.
