You can change the name of a element in a capsule-based
model, and have the source code reflect that change.
About this task
To change the name of a model element, you must have a valid
capsule-based C++ model, a transformation configuration, and the generated
C++ source. You can rename supported model elements, such as ports,
capsule parts, events, operations, attributes, classes, capsules and
protocols to update the source code.
Changing the name of elements,
such as operations, attributes, ports, and in and out events, changes
the source and its full redefinition tree. Attributes and operations
that use the passive class as a type change their declarations to
ensure that the native types are still valid.
To rename a model
element: