|
|
Delete Type |
Rhapsody will not allow you to delete a Type from the model if it is used anywhere in the model. That usage might be in attributes, arguments, return types and so on. This helper allows detection and navigation to these references and provides a one-click option to delete the type.
|
Applicable To |
Type |
|
Menu
Entry |
Power
Pack Delete Type |
If the type has no references, then it is simply deleted. If the type has references those are listed in a UI. Double clicking a reference will locate it in the model. A context menu is also available:

Locate Owner is useful if the type is used (for example) in a tag on an element on a diagram. Locate in Model will locate that element in the browser, while Locate Owner in Model will highlight the owning element on the diagram.
Clicking Delete Type and References will give an option to backout. If confirmed, then all the references are deleted along with the Type. Clicking Undo will restore all the references along with the Type.
If the type is used as a return type for an operation, then that operation is reset to return void.
If the type is used in an argument in an operation or event reception then by default that argument is reset back to the default int to avoid losing information, however the following option may be set at project level to enforce deletion of the argument(s) instead:
RhapsodyPowerPack.DeleteType.DeleteArguments