Contextual Views
- Last UpdatedApr 08, 2024
- 5 minute read
The contextual views functionality provides a programmatic mechanism to determine logical and intelligent contextual views (sub-models) from an initial input or class selection. The initial selection criteria represents the context in the contextual view.
On the Data Model tab, in the Contextual View group, click Create to display the Create Contextual View window.
Use the Create Contextual View window to create a contextual view. A contextual view can be created using a marquee selection and the right click menu on the diagram view. Refer to Mouse Controls for further information. Alternatively, a contextual view can be created from existing identities, vocabularies or database views when the Create Contextual View window is opened from the ribbon or the Home window.

|
Name |
Input a name for the contextual view in the field. |
|
Description |
Input a description for the contextual view in the field. |
|
Include sub classes |
Select the check box to include sub classes of the selected classes in the contextual view. |
|
Include all sub-classes |
Select the check box to include all sub classes and associated classes in the contextual view. |
|
Include required classes |
Select the check box to include classes required to specify a complete contextual view sub-model, including associated class hierarchies and parent classes. |
|
Include associations |
Select the required association types from the drop-down menu to filter the associated classes. |
|
Filters |
Select the required check boxes to add classes to the selected classes column that are associated with identities vocabularies or database views. Note: Note: The database views filter displays all database view sets as top-level items, with the database views as child items. The filter is populated the first time the database views filter is expanded, so there may be a delay while the data loads. A database view can be a member of more than one database view set. In this case, all instances of the same database view in the filter are selected or deselected at the same time. When a database view is selected, classes are added to the selected classes column based on the element types defined for the view. The element types (UDETs) can be any types that map to a model class. For example, the element types :Vessel, :VesselMECH and :FUNVessel will all select the Vessel class. |
|
Selected Classes |
Displays the classes to be added to the contextual view.
|
|
Populate |
Adds the selected classes to the contextual view contents column. Sub classes and required classes are also added to the contextual view contents column, if selected. |
|
Contextual View Contents |
Displays all classes to be added to the contextual view. The top of the column displays the total number of classes contained in the contextual view compared to the total number of classes in the model, this is also indicated as a percentage value. |
|
Create |
Creates the contextual view. |
|
Refresh |
Updates the filters to reflect changes made outside of the Create Contextual View window. |
|
Close |
Closes the Create Contextual View window. |
The Creating Contextual View Preview window displays the progress of the classes added to the Contextual View Contents column.

Click Show Details to expand the Creating Contextual View Preview window which displays a summary of the process.
Click Save Errors and Warnings to save the errors and warnings to a log file. Input a file name and define a location for the saved file. The file is saved to CSV format.
Click Hide Details to contract the Creating Contextual View Preview window which removes the summary of the process from the display.
Click Close to close the Creating Contextual View Preview window.
Contextual views can be created, modified and deleted using the functionality available on the Home window.

|
Add a new contextual view |
Creates a contextual view. |
|
Name |
Specifies the name of the contextual view. |
|
Description |
Specifies the description of the contextual view. |
Use the Delete functionality to delete the currently selected contextual view. A confirmation window displays asking you to confirm the deletion.

If the currently selected contextual view is open in a diagram view or grid view, a message displays summarizing the problem.

Indicates the classes added from a selection in the diagram view.
Indicates the classes added from an identity filter.
Indicates the classes added from a vocabulary filter.
Indicates the classes added from a database view filter.