Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Use a Pattern

Using a Design Pattern, you can rapidly create template solutions for code structures that perform the same type of task in other situations, and use items defined in the Pattern with the model.


Use one of the methods outlined here to display the 'Resources' tab of the Browser window.


Start > All Windows > Design > General > Browse > Resources

Explore > Portals > Windows > Explore > Resources

Keyboard Shortcuts


Use a Pattern previously imported into the model



See also


Open the diagram into which to add the Pattern.


Select the 'Resources' tab of the Browser window.


Expand the folder 'Patterns' and expand sub-folders as necessary, until the Pattern you require is located.

You can view the Pattern details in read-only mode by right-clicking on the name and selecting the 'View Pattern Details' option.



  • Select the 'Add Pattern to Diagram' context menu option or
  • Drag and drop the Pattern from the 'Resources' tab of the Browser window onto the diagram

The 'Add Pattern <pattern group> <pattern name> to Diagram' dialog displays.

Add Pattern Dialog


Work through the dialog, making selections as required.

Once the appropriate selections have been made, click on the OK button to import the Pattern into the model, recreating the original diagram with new GUIDs.

Change the default of the Pattern element



See also


In the 'Add Pattern <pattern group> <pattern name> to Diagram' dialog, ensure the option 'Import as Package Fragment' is unchecked.


Select the individual element in the 'Pattern Elements' panel.


Click on the Browse. button at the end of the item row to display the 'Edit' dialog.

The specific method for changing the element name is dependant upon the entry in the 'Action' column of the 'Pattern Elements' panel.


If the 'Action' entry for the element is 'Create', then in the 'Default' field in the 'Edit' dialog delete the existing value and type your own, user-defined value.

Click on the OK button.

The element default is updated on the 'Add Pattern...' dialog.


If the 'Action' entry for the element is 'Merge', in the 'Edit' dialog click on the Browse. button to browse to an existing element classifier.

The 'Select <Item>' dialog displays.


Locate and select an existing element classifier.

You can restrict the number of choices by selecting the elements from a specific namespace; to do this, click on the 'In Namespace' drop-down arrow and select a namespace.

Classify an Object

Learn more