Main Content

deleteSubGroup

Delete subgroup in element group of view

Since R2021a

    Description

    deleteSubGroup(elementGroup,subGroupName) deletes the subgroup named subGroupName within the element group elementGroup of an architecture view.

    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 the new view newView.

    model.openViews
    

    Create a subgroup myGroup.

    group = view.Root.createSubGroup("myGroup");

    Delete the subgroup myGroup.

    view.Root.deleteSubGroup("myGroup");

    Input Arguments

    collapse all

    Element group for view, specified as a systemcomposer.view.ElementGroup object.

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

    Example: "myGroup"

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2021a