주요 콘텐츠

systemcomposer.view.ViewArchitecture

(Removed) Set of view components in architecture view

    The systemcomposer.view.ViewArchitecture class has been removed. It has been replaced with the systemcomposer.view.View and the systemcomposer.view.ElementGroup classes. For further details, see Version History.

    Description

    A ViewArchitecture object describes a set of view components that make up a view. This object inherits from the systemcomposer.view.ViewElement object.

    Properties

    expand all

    Name of architecture derived from the parent component or model name to which the architecture belongs, returned as a character vector.

    Example: name = get(objViewArchitecture,'Name')

    Data Types: char

    Control inclusion of referenced models, returned as 1 (true) or 0 (false).

    Example: included = get(objViewArchitecture,'IncludeReferenceModels')

    Data Types: logical

    Color of view architecture, returned as a character vector as a name 'blue', 'black', or 'green' or as a RGB value encoded in a hexadecimal string '#FF00FF' or '#DDDDDD'. An invalid color string results in an error.

    Example: color = get(objViewArchitecture,'Color')

    Description of view architecture, returned as a character vector.

    Example: description = get(objViewArchitecture,'Description')

    Example: set(objViewArchitecture,'Description',description)

    Data Types: char

    Component that owns view architecture, returned as a systemcomposer.view.BaseViewComponent object. For a root view architecture, returns an empty handle.

    Example: parentComponent = get(objViewArchitecture,'Parent')

    Array of handles to the set of child components of this view architecture, returned as an array of systemcomposer.view.BaseViewComponent objects.

    Example: childComponents = get(objViewArchitecture,'Components')

    Object Functions

    addComponent(Removed) Add component to view given path
    removeComponent(Removed) Remove component from view
    createViewComponent(Removed) Create view component

    Version History

    Introduced in R2019b

    collapse all