Main Content

createViewComponent

(Removed) Create view component

Since R2019b

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.

Version History

Introduced in R2019b

collapse all

R2021a: createViewComponent function has been removed

The createViewComponent function is removed in R2021a with the introduction of a new set of views API. For more information on how to create and edit a view using the command line, see Create Architecture Views Programmatically.