To Add a Related Object to an Element/Tag Set
- Open the Reports dialog (Drawing> Analyze > Reports).
- Create a new report definition
- In the report definition, in the Properties section, select Object > Instances > Tag Instances The Objects dialog opens.
- Select Tag Instances from the Include these Objects drop-down menu .
- Select Add related Objects. The related object drop-down menu is displayed.
- Expand the Tag is attached to Element node the drop-down menu.
- Select Elements from the Tag is attached to Elements option.
- Click OK on the Object dialog. The related objects are associated with the element along with the selected Tag Instances.
- Select Columns in the Report definitions and click on Add Columns. The Select Columns to Add dialog opens.
- Click OK.
- For "Included object", i.e. Tag Instance in our example, properties like "Tag Name" and Tag Value are unique to "Tag Instance". Therefore you don't see "From Related Object" option.
- However, the properties "Element ID" & "Element Description" belong to both "Included object" i.e Tag Instance & Related object i.e. "Element". Therefore you see "From Related Object"
- By default "From Related object" is set to "No". Meaning, it will fetch values from "Included" object i.e. from Tag Instance in our example.
- Click on Preview to see the results.
- Set "From related Object" to "Yes", to get report with values of Element ID and Description from "Related object", which is an element on which tag resides here in our example. Preview will be: