createViewComponent

Create new view component

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.

Introduced in R2019b