All attribute data of an element can be displayed as text using label definitions. These definitions are created using any select statements.
Creation of a new label definition, in this case “trench”
In Autodesk Infrastructure Administrator, navigate to Data Model Administrator via Industry model > Data model
Right-click on the desired element to open the context menu > Create label definition
A properties window will then open.
1. Name of the label definition
2. If the checkmark is set, the label is automatically applied when creating a higher-layer object.
3. SQL statement for defining the text content
4. If the checkmark is set, the label is created even if the SQL statement for the text content is empty.
5. Default text to be inserted before or after the selected text.
6. SQL statement for specifying the higher-layer geometry
7. Specification of the positioning of the label
- Positioning of the label object
- Absolute: Determination of the text-field insertion mark relative to geographic North and East
- Relative: Determination of text insertion marks relative to a line perpendicular to the object direction.
- Offset of the insertion point in easting and northing value
- Positioning of a text field in relation to the start, middle or end point of the higher-layer geometry
8. If the checkmark is set, the position of the label must be set manually when creating
9. Orientation of the label
- Absolute: Defines the rotation relative to the coordinate system
- Relative: Defines the rotation relative to the higher-layer object
- The degree specification defines the rotation
10. If the checkmark is set, when creating a label, attention is paid to its readability (e.g. if it is rotated automatically, it should be turned upside down by the relative rotation)
11. Defines the horizontal and vertical orientation of the label
12. Defines an optional select statement for the scaling factor so as to scale the label text relative to the scale
Normally, labels are automatically updated when attributes are changed. However, only attributes of the main feature class are updated. This is the feature class to which the label definition belongs. Regeneration rules are applied when the label definition contains text that is stored in an associated secondary feature class.
Open the dialog for defining new label regenerations.
Define the label regeneration.
- This selects a rule. The default name of a rule is the name of the current label definition.
- This creates a new rule.
- This deletes the selected rule.
- This selects the associated feature class (secondary feature class). If an object of this feature class is modified, the regeneration rule is applied.
- Select an attribute whose modification will cause the regeneration rule to run.
- This defines a select statement to retrieve the label’s higher-layer ID. The default statement contains the main and the secondary feature class.
- This activates the rule
Applying the label definition
Create a new label in the form, in this case “Trench”
Select a label definition, here “Trench name—Training”
If you change the name of the trench in the form, it is also automatically adjusted in the label.