Main Content

createViewComponent

(Removed) Create view component

The createViewComponent function has been removed. You can create a view using the createView function and then add a component using the addElement function. Add a subgroup with the createSubGroup function. For further details, see Compatibility Considerations.

Description

example

viewComp = createViewComponent(object,name) creates a new view component with the provided name.

createViewComponent is a method for the class systemcomposer.view.ViewArchitecture.

Examples

collapse all

Create view component with context view.

scKeylessEntrySystem
zcModel = systemcomposer.loadModel('KeylessEntryArchitecture');
fobSupplierView = zcModel.createViewArchitecture("FOB Locator System Supplier Breakdown",...
    "Color","lightblue");
supplierD = fobSupplierView.createViewComponent("Supplier D");

Input Arguments

collapse all

View architecture, specified as a systemcomposer.view.ViewArchitecture object.

Name of component, specified as a character vector.

Data Types: char

Output Arguments

collapse all

View component, returned as a systemcomposer.view.ViewComponent object.

Compatibility Considerations

expand all

Errors starting in R2021a

Introduced in R2019b