The Specification Manager is an excellent model development tool, through which you can create elements in the Package you are reviewing in a number of ways. You can add new elements either:
- Directly to the Package or
- As child elements of an element in the Package
There are several methods of adding a new element, some of which vary depending on whether you have set a specific element type as the Specification Type, or set the display to list all types of element in the Package. If you import a set of element data from an external spreadsheet (.csv) file, this setting will also filter the imported information to show elements of the specified type or all types.
With the Specification Manager window open:
Drag an element icon from an appropriate page of the Diagram Toolbox onto the Specification Manager
Specification-Specify > Element > Insert > Add Default
Specification-Specify > Element > Insert > Add Child
Specification-Specify > Element > Insert > Repeat Previous
Specification-Specify > Element > Insert > Add Other
Specification-Specify > Element > Insert > Add Multiple Elements
Right-click window | Add New Element
Right-click window | Add New Child
Right-click window | Repeat last Element
Right-click window | Create Multiple Elements
Add New Button
Click on the at the end of the display
Ctrl+N (new element)
Ctrl+Shift+N (new child element)
(repeat previous element)
Add an element from the Diagram Toolbox
When you have the appropriate page of the Diagram Toolbox displayed (press ), click on and use the Toolbox 'Find Toolbox Item' dialog to locate the page), you can drag an element icon to a specific point on the Specification Manager View. The element entry immediately above the cursor is indicated by a blue side-bar, and a context menu displays with three options:
- 'Insert after Selection' - the new element will be added as a peer immediately underneath the highlighted element
- 'Insert as Child' - the new element will be added as a child of the highlighted element
- 'Add to End of Document' - the new element will be added to the end of the list, as a peer of the highest level of the hierarchy
Add element using the Add New button
At the bottom of the Specification Manager view, this button displays:
Select a current element, then click on the button or use the keyboard down-arrow to move to and select it, then select either:
- An element type from the list of appropriate types based on the current Package type and content
- The 'Other' option and select an element group and type from the submenu, or
- The 'Any' option to display the 'New Element' dialog, from which you can select an element type from any defined in the model
The new element is added to the Package immediately after and at the same level as the selected element.
The button can be hidden and redisplayed using the 'Add New Button' option on the 'Display' panel of the Specification - Specify ribbon.
Add element of predefined Specification Type
If you have set the Specification Type to a particular type of element:
- An element of that type is immediately added to the Specification Manager; the element has either the system default element name or a name that you have set up under your own naming conventions
- The name is highlighted and, if you want to change it, you can immediately type in an alternative name
- If the element is a child of an existing element, the entry is added underneath the parent, indented and in a smaller font; the parent element is given an expansion arrow
Add element of any Specification Type
If the Specification Manager is listing elements of any type, or if you have set the 'Specification Type' to '<Any>', the 'New Element' dialog displays. You can use this dialog to create an element of any type that the model supports.
Add elements from Pattern
Enterprise Architect provides Patterns in the Diagram Toolbox and in the 'Resources' tab of the Browser window; you can create your own Patterns and make them available from the same places. Patterns are a great way to create template structures of elements in your specifications, and you can 'drag and drop' them from the Toolbox or 'Resources' tab of the Browser window into the Specification Manager.
When you release the mouse button to 'drop' the Pattern, a short menu displays from which you select to add the Pattern elements underneath the item immediately above, either as a peer structure or as a child structure.
- If you add an element of the defined Specification Type to the selected Package in the Browser window, it is also added to the Specification Manager
- In the Corporate and extended editions of Enterprise Architect, User Security can be applied that restricts or enables access to a range of operations and functions; if you cannot access a function in the Specification Manager, check with your System Administrator or Security Administrator to see if you have access permissions to work with that function