new element from new stereotype

Systems engineering related questions and discussions.

Moderator: Moderators

new element from new stereotype

Postby » 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
You do not have the required permissions to view the files attached to this post.
Forum Newbie
Forum Newbie
Posts: 2
Posts Rating:2
Joined: Tue Nov 15, 2022 10:23 am

Re: new element from new stereotype

Postby » 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.
Forum Newbie
Forum Newbie
Posts: 3
Posts Rating:0
Joined: Tue Apr 25, 2023 8:37 pm

Return to Model Based Systems Engineering (MBSE)

Who is online

Users browsing this forum: No registered users and 0 guests