Main Content

deleteView

Delete architecture view

Since R2021a

    Description

    deleteView(model,name) deletes the view name, if it exists, in the specified model model.

    example

    Examples

    collapse all

    Open the keyless entry system example and create a view, newView.

    openProject("scKeylessEntrySystem");
    model = systemcomposer.loadModel("KeylessEntryArchitecture");
    view = model.createView("newView");

    Open the Architecture Views Gallery to see newView.

    model.openViews
    

    Delete the view and see that it has been deleted.

    model.deleteView("newView")

    Input Arguments

    collapse all

    Architecture model, specified as a systemcomposer.arch.Model object.

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

    Example: "All Components Grouped by Review Status"

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2021a