Hierarchy QueryLevelDef usage example

Provides a usage example for scoped smart tags in a hierarchy QueryLevelDefinition.

To add a c:parentName tag with the value of the n:name tag to all descendants of a component with a "c:parent" tag, create a scoped tag with the ID c:parentName, set the Search Tag List property to c:parent, and set the Value Source Tag List property to n:name.

Figure 34.   parentName becomes an implied tag on the descendant
Image

You can use this by setting up a hierarchy to first query for all objects in the station that have a c:parent tag, and then using a query facet, to query for all objects in the station that have both a c:child tag and a c:parentName tag that is the same name as the parent component.

Figure 35.   Hierarchy utilizing scoped tags
Image

When defining a hierarchy, one advantage to using QueryLevelDefs rather than GroupLevelDefs is that you can attach a graphic view to a QueryLevelDefinition. On expanding the resulting hierarchy, the graphic view displays for that level.