View Definitions - Integration - Update 44 - Help - Hexagon

Integration Help

Language
English
Product
Integration
Search by Category
Help
Smart 3D Version
12.1 (2019)
Smart Construction Version
2019(7.0)
SmartPlant Foundation / SDx Version
10
Smart Electrical Version
2019 (9.0)
Smart Materials/Smart Reference Data Version
2020 (10.0)
Smart P&ID Version
9 (2019)
Smart Review Version
2020 (15.0)
Smart Engineering Manager Version
10 (2019)
Smart Interop Publisher Version
13.1 (2019 R1)
Smart Isometrics Version
7.0(2019)
Spoolgen Version
9.0(2019)

Directed graph definitions are useful for defining a network of objects to be traversed. While the objects resulting from traversing a graph definition (the graph for that graph definition) can be viewed as objects (the Schema Editor frequently does this), there is also a desire to see these objects from a flattened perspective.

Viewing objects from a flattened perspective can be useful for

  • Viewing the graph as a table where each row in the table corresponds to one set of objects from the graph

  • Viewing the graph as an Excel data sheet where cells in the data sheet correspond to specific properties from specific objects in the graph

View definitions are used to support this flattening of the directed graph. A view definition includes a selected subset of the complete set of properties that a graph definition exposes.

View definitions are SmartPlant equivalents of relational database views. A relational database view is a combination of joins and projects where the joins are used to retrieve the desired objects and the projects are used to determine which properties (columns) to include and what to call those properties. SmartPlant equivalents of relational database joins are directed graph definitions. The projection of this graph data is accomplished using view definitions.

View definitions consist of the following:

  • A starting interface definition

  • Identification of the directed graph definition for the view definition

  • A definition of the projection of property definitions from the directed graph definition, including modified display names as needed

A view definition is based on a directed graph definition and, therefore, like the directed graph definition, has a relationship to its starting interface definition. This interface definition should always be the same interface definition as that for its directed graph definition.

View Definition Example

The following graphic shows a view definition that includes three properties from three different objects exposed by a GraphDef1. The display names for the properties were modified in the view definition: Name for the first object was changed to Tag No, Name for the second object was changed to P&ID, and OtherProp was changed to Other property. The results are displayed in the SmartPlant Foundation Desktop Client Properties window.

View Definitions in SmartPlant Foundation

In SmartPlant Foundation, view definitions are used to define what users see in the Properties window when they select an object in the client. When you create ad-hoc reports in the SmartPlant Foundation client, you can also select the view definition that you want to use as the basis for the report as well as the properties from that view definition that you want to include in the report.

You can also use view definitions to create alternate views for classes. To create an alternate view for a class, you must do the following:

  • Create the appropriate class definition in the SmartPlant schema

  • Create a method that references the view definition in the Desktop Client

  • Define user access for the method in the Desktop Client

  • Associate the method with an interface in the Desktop Client

For all users who have access to the method, the method shows up on the shortcut menu for all class definitions that realize the interface definition.

See Also

Edge Definitions, Graph Definitions, and View Definitions
Graph Definitions
Create a View Definition