Prev | Next |
Add Elements Directly To Packages
You can quickly add new elements to a Package without necessarily adding the element to a diagram at the same time. This is particularly useful in defining a group of Requirements, Changes, Issues, base Classes or other element types that you might not need to represent on diagrams in the model. You do, however, still have the option of adding the element to an open diagram.
Access
Ribbon |
Design > Element > Add > Element |
Context Menu |
Right-click on Package | Add Element |
Keyboard Shortcuts |
With a Package selected in the Browser window: In a diagram, press the |
Other |
Browser window header bar menu | New Element |
Add an element to a Package
Option |
Action |
See also |
---|---|---|
Toolset |
In the first field, click on the drop-down arrow and select a Perspective to filter the types of element offered for selection to those available through the Perspective. In the second field, click on the drop-down arrow and select the UML diagram type, Profile, Add-In or MDG Technology to further filter the element types to that diagram type, technology, Profile or Add-In within the Perspective. |
|
Name |
Type the name of the element. |
|
Auto |
As an alternative to typing in the name, click on this button to insert predefined auto-counter text. If you already have some text in the 'Name' field, it is over-written by the auto-counter text. |
Set Auto Naming and Auto Counters |
Type |
Click on the drop-down arrow and select the required element type from the list. The list of element types is derived from the diagram or technology shown in the 'Toolset' field. |
|
Stereotype |
If required, either type the stereotype name or click on the drop-down arrow and select the stereotype. This field is not available if the element you are creating is an extended element that already has a stereotype. |
|
Add element to diagram |
This checkbox is available if you have a diagram open and you are working from the Browser window. The checkbox defaults to selected to add the new element to the diagram also; if you do not want the element in that diagram, deselect the checkbox. If you accessed this dialog by pressing the on the open diagram, this checkbox is not available. The element is automatically added to the diagram, in the center. |
|
Save |
Click on this button to create the element and close the dialog. If you accessed this dialog by pressing the in an open diagram
If you accessed the dialog by selecting the 'New Element' option from the Browser window header bar ('Hamburger' icon), clicking on this button also leaves the dialog open. |
|
Save and Exit |
Available if you have accessed this dialog by pressing the Browser window header bar ('Hamburger' icon). on an open diagram, or by selecting the 'New Element' option from the Click on this button to create the element and close the dialog. |
|
Cancel |
Click on this button to abort the changes and close the dialog without creating an element. |
Notes
- The 'New Element' dialog also displays when you create an element in the Specification Manager, if the Specification Type is <Any>
Learn more
- Adding Elements (Specification Manager)