Main Content

removeProperty

Remove property from stereotype

Description

removeProperty(stereotype,propertyName) removes a property from the stereotype.

example

Examples

collapse all

Add a component stereotype and add a VoltageRating property with value 5. Then remove the property.

profile = systemcomposer.profile.Profile.createProfile("myProfile");
stereotype = addStereotype(profile,"electricalComponent",AppliesTo="Component")
property = addProperty(stereotype,"VoltageRating",DefaultValue="5");
removeProperty(stereotype,"VoltageRating")

Input Arguments

collapse all

Stereotype, specified as a systemcomposer.profile.Stereotype object.

Name of property to be removed, specified as a character vector or string.

Data Types: char | string

More About

collapse all

Version History

Introduced in R2019a