Page 1 of 1

new element from new stereotype

PostPosted: Tue Nov 15, 2022 10:31 am
I try to create a new element from the existing "Comment" in CAMEO. The new one is derived from Comment and has an enumeration {open|closed} as an attribute. How can I make it appear in the "Create Element.." list after right-clicking a package? A picture of the profile definition is attached.
Thanks in advance!

2022-11-15 17_29_29-Window.png

Re: new element from new stereotype

PostPosted: 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.