by jeffreestary@gmail.com » Tue Apr 25, 2023 8:45 pm
You must perform the following to get the new element to show up in the "Create Element.." list after right-clicking a package:
Make a brand-new stereotype that extends the Comment metaclass and has the extra attribute "open|closed" in it.
To the Comment element you want to derive from, apply the new stereotype.
Add the stereotype to the profile by either creating a new one or editing an existing one.
Ensure that your project has the profile enabled.
Navigate to Options -> Environment -> Toolbars and Menus in the MagicDraw main menu.
Select the "Toolbars" tab in the "Toolbars and Menus" dialog box.
To build a new toolbar, click the "New" button.
Click "OK" after giving the toolbar a name.
Click the "Add" button after choosing the new toolbar from the list.
The tool category should be "Create Element" in the "Add Tool" dialog box.
Choose the profile from the dropdown list that contains the new stereotype.
The new stereotype can be chosen from a dropdown menu.
To save the updated toolbar, click "OK".
When you right-click a package after completing these steps, the new element ought to appear in the "Create Element.." list.