Get value of property from element instance
Assume that a
MechComponent stereotype is attached to the
specification of the instance.
weightValue = getValue(instance,'MechComponent.weight');
instance— Element instance
Element instance, specified by a
systemcomposer.analysis.ConnectorInstance object. This function is
part of the instance API that you can use to analyze the model iteratively, element by
instance refers to the element instance on which the
iteration is being performed.
Property, specified as a character vector in the form
value— Property value
string| enumeration class name
Property value, returned as a data type that depends on how the property is defined in the profile.
unit— Property unit
Property unit, returned as a character vector that describes the unit of the property as defined in the profile.