Creating symbolic views
Review the procedures for creating rendered symbolic views. For basic view creation procedures, see the Views basics page.
Creating symbolic views
Creating symbolic views via the Create View command
The Create View command invokes the View Creation dialog/submenu, which displays the following view definitions:
- Standard predefined symbolic view definitions. See the table on the Symbolic views page for a full list.
- To use predefined symbolic view definitions that use expressions, see the Creating symbolic views via the Textual Editor procedure.
- Custom symbolic view definitions
To create symbolic views via the Create View command
In the Containment tree, right-click an element that would be the owner of the new symbolic view.
In the shortcut menu, click Create View. In the submenu, click the appropriate symbolic view.
The view is created as a view usage element and named after its owner.If the Create View command is invoked for:
- package or namespace - an empty view is created.
- usage or definition element - a view is created with a docked element symbol representing the element for which the view was created. Learn more >>
Creating symbolic views via the Textual Editor
A rendered view is produced when a view usage is defined by a view definition that carries a renderer. For symbolic views, use:
- Predefined symbolic view definitions. See the table on the Symbolic views page for a full list.
- Custom symbolic view definitions
The following procedure exemplifies the creation of predefined symbolic views.
To create symbolic views via the Textual Editor
- In the Textual Editor, place the cursor where you want to create a view.
- Declare the view keyword, specify the element name, and then define it by the needed view definition.
- Click the Synchronize button.
// new view elements are defined by standard predefined symbolic view definitions:
view 'General View' : DS_Views::SymbolicViews::gv; // new view element is defined by the 'gv' i.e., view definition 'General View'
view 'Action Flow View' : DS_Views::SymbolicViews::afv; // new view element is defined by the 'afv' i.e., view definition 'Action Flow View'
view 'Interconnection View' : DS_Views::SymbolicViews::iv; // new view element is defined by the 'iv' i.e., view definition 'Interconnection View'
view 'State Transition View' : DS_Views::SymbolicViews::stv; // new view element is defined by the 'stv' i.e., view definition 'State Transition View'// new view elements are defined by predefined symbolic view definitions that use expressions:
view 'Usages Nested View' : DS_Views::SymbolicViewsByExpression::UsagesNestedView; // new view element is defined by view definition 'UsagesNestedView'
view 'Parts Nested View' : DS_Views::SymbolicViewsByExpression::PartsNestedView; // new view element is defined by view definition 'PartsNestedView'
view 'Parts & Ports Nested View' : DS_Views::SymbolicViewsByExpression::'Parts&PortsNestedView'; // new view element is defined by view definition 'Parts&PortsNestedView'
view 'Parts Tree View' : DS_Views::SymbolicViewsByExpression::PartsTreeView; // new view element is defined by view definition 'PartsTreeView'
view 'Actions Nested View' : DS_Views::SymbolicViewsByExpression::ActionsNestedView; // new view element is defined by view definition 'ActionsNestedView'
view 'Actions Tree View' : DS_Views::SymbolicViewsByExpression::ActionsTreeView; // new view element is defined by view definition 'ActionsTreeView'
view 'Requirements Tree View' : DS_Views::SymbolicViewsByExpression::RequirementsTreeView; // new view element is defined by view definition 'RequirementsTreeView'
view 'States Nested View' : DS_Views::SymbolicViewsByExpression::StatesNestedView; // new view element is defined by view definition 'StatesNestedView'
view 'Tree View' : DS_Views::SymbolicViewsByExpression::TreeView; // new view element is defined by view definition 'TreeView'
view 'Nested View' : DS_Views::SymbolicViewsByExpression::NestedView; // new view element is defined by view definition 'NestedView'
Creating undefined symbolic views using renderers via the Textual Editor
Instead of creating symbolic views defined by symbolic view definitions that already have specified renderers, you can specify the renderer directly for the new view.
- See the table of available renderers on the Rendering views page.
To create undefined views using renderers via the Textual Editor
- In the Textual Editor, place the cursor where you want to create a view.
- Declare the view keyword, and specify the element name.
- In the body of the view element, declare the render keyword followed by the needed renderer.
- Click the Synchronize button.
view newView { // new view element is not defined by any view definition
render Views::asInterconnectionDiagram; // the view has a renderer asInterconnectionDiagram, rendering it a symbolic view with nested-view rendering style
}
view newView { // new view element is not defined by any view definition
render Views::asTreeDiagram; // the view has a renderer asTreeDiagram, rendering it a symbolic view with tree-view rendering style
}