Main Content

Create Custom Views

Create custom viewpoints of an architecture model

System models tend to be large and complex. You can create a custom subset of components from architecture models by filtering model elements based on criteria such as stereotypes, properties, and requirement links in the Architecture Views Gallery. This custom subset is called an architecture view and is a simplified way of working with complex systems. You can use views to focus on certain parts of the architectural design and create operational, functional, or physical views for analysis.

Use architectural spotlight views to analyze component dependencies and hierarchy.

Use queries to define custom viewpoints on the architecture model. View filters rely on the constraints defined by queries. You can define queries programmatically. Group ports in component diagram views to simplify complex networks of ports and connections.

Define architecture views and hierarchical views. Hierarchical views show the same set of components in tree form.

Use the Interface Editor in the Architecture Views Gallery to manage interfaces, manage interface data dictionaries, assign interfaces to ports, and delete interfaces. These changes are mirrored in the parent architecture model.

Classes

expand all

systemcomposer.view.ViewArchitecture view (Since R2021a)
systemcomposer.view.ElementGroupArchitecture view element group (Since R2021a)
systemcomposer.query.ConstraintQuery constraint (Since R2019b)

Functions

expand all

openViewsOpen Architecture Views Gallery (Since R2019b)
createViewCreate architecture view (Since R2021a)
getViewFind architecture view (Since R2021a)
deleteViewDelete architecture view (Since R2021a)
modifyQueryModify architecture view query and property groupings (Since R2021a)
runQueryRe-run architecture view query on model (Since R2021a)
removeQueryRemove architecture view query (Since R2021a)
addElementAdd component to element group of view (Since R2021a)
removeElementRemove component from element group of view (Since R2021a)
getQualifiedNameGet model element qualified name
createSubGroupCreate subgroup in element group of view (Since R2021a)
getSubGroupGet subgroup in element group of view (Since R2021a)
deleteSubGroupDelete subgroup in element group of view (Since R2021a)
findFind architecture model elements using query
findElementsOfTypeFind all elements of specific type (Since R2023a)
findElementsWithStereotypeFind all elements with stereotype (Since R2023a)
findElementsWithPropertyFind all elements with property value (Since R2023a)
findElementsWithInterfaceFind all elements with type set by interface (Since R2023a)
AnyComponentCreate query to select all components in model (Since R2019b)
PropertyCreate query to select non-evaluated values for object properties or stereotype properties for elements (Since R2019b)
PropertyValueCreate query to select property from object or stereotype property and then evaluate property value (Since R2019b)
HasStereotypeCreate query to select architectural elements with stereotype based on specified subconstraint (Since R2019b)
IsStereotypeDerivedFromCreate query to select stereotype derived from qualified name (Since R2019b)
HasPortCreate query to select architectural elements with port based on specified subconstraint (Since R2019b)
HasConnectorCreate query to select architectural elements with connector based on specified subconstraint (Since R2020a)
HasInterfaceCreate query to select architectural elements with interface on port based on specified subconstraint (Since R2019b)
HasInterfaceElementCreate query to select architectural elements with interface element on interface based on specified subconstraint (Since R2019b)
IsInRangeCreate query to select range of property values (Since R2019b)

Tools

Architecture Views GalleryCreate and manage views and sequence diagrams (Since R2019b)
Interface EditorCreate and author interfaces in local and shared interface data dictionaries