Main Content

systemcomposer.profile.Stereotype.find

Find stereotype by name

    Description

    stereotype = systemcomposer.profile.Stereotype.find(name) finds a stereotype by name.

    example

    Examples

    collapse all

    Find a stereotype in the small UAV (unmanned aerial vehicle) model.

    openProject("scExampleSmallUAV");
    stereotype = systemcomposer.profile.Stereotype.find("UAVComponent.OnboardElement")
    stereotype = 
      Stereotype with properties:
    
                        Name: 'OnboardElement'
                 Description: 'Represents the base component of UAVComponent'
                      Parent: [0×0 systemcomposer.profile.Stereotype]
                   AppliesTo: 'Component'
                    Abstract: 0
                        Icon: 'network'
        ComponentHeaderColor: [210 210 210]
          ConnectorLineColor: [168 168 168]
          ConnectorLineStyle: 'Default'
          FullyQualifiedName: 'UAVComponent.OnboardElement'
                     Profile: [1×1 systemcomposer.profile.Profile]
             OwnedProperties: [1×3 systemcomposer.profile.Property]
                  Properties: [1×3 systemcomposer.profile.Property]
    
    

    Input Arguments

    collapse all

    Name of stereotype, specified as a character vector or string in the form "<profile>.<stereotype>".

    Data Types: char | string

    Output Arguments

    collapse all

    Found stereotype, returned as a systemcomposer.profile.Stereotype object.

    More About

    collapse all

    Version History

    Introduced in R2019a