createViewArchitecture

Description

view = createViewArchitecture(obj, name,Name,Value) creates an empty view with the given name.

view = createViewArchitecture(obj, name,constraint,Name,Value) creates a view with the given name where the contents are populated by finding all components in the model that satisfy the provided query.

example

view = createViewArchitecture(obj, name,constraint,groupBy,Name,Value) creates a view with the given name where the contents are populated by finding all components in the model which satisfy the provided query. The selected components are then grouped by the fully qualified property name.

Examples

collapse all

scKeylessEntrySystem;
m = systemcomposer.openModel('KeylessEntryArchitecture');

import systemcomposer.query.*;
myQuery = HasStereotype(IsStereotypeDerivedFrom("AutoProfile.SoftwareComponent"));

view = m.createViewArchitecture('Software Review Status', myQuery, 'AutoProfile.BaseComponent.ReviewStatus', 'Color', 'red');

m.openViews;

Input Arguments

collapse all

Model object to use to create a view.

Name of the view, specified as a character vector or string.

Constraint created using systemcomposer.query* objects representing specific conditions. A constraint can contain a subconstraint that can be joined together with another constraint using AND or OR. A constraint can also be negated using NOT.

User-defined property specified as an enumeration by which to group components.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'IncludeReferenceModels', true

Indicates if find searches referenced architectures or does not include referenced architectures. The default is false.

Example: 'IncludeReferenceModels', true

Associated color of the view specified as a string or character array that contains the name of the color or an RGB hexadecimal value.

Example: 'Color','blue'

Example: 'Color,'#FF00FF'

Output Arguments

collapse all

Model architecture view created based on the specified query and properties.

Introduced in R2019b