How to declare package imports
Package imports declare which M2 metamodels an M1 package can use. Without imports, the Palette is empty and you can’t create typed elements.
Add an import
Section titled “Add an import”- Select the M1 package in the Explorer
- In the Properties panel, find the Imports section
- If the imports are inherited from a parent package, click Override to make them editable
- Click the + button to add an import
- Select the M2 metamodel you want to import
The Palette updates immediately — the imported metamodel’s element types and relationship types are now available.
Import multiple metamodels
Section titled “Import multiple metamodels”Repeat the process to import additional metamodels. A single package can import as many M2s as needed. The Palette shows types from all imported metamodels, grouped by layer.
Import inheritance
Section titled “Import inheritance”Sub-packages inherit imports from their parent by default. If a top-level M1 package imports ArchiMate, all sub-packages within it also have access to ArchiMate types.
To override imports on a sub-package (for example, to add an additional metamodel):
- Select the sub-package
- Click Override in the Imports section
- Add or remove imports as needed
Overriding replaces the inherited imports entirely — make sure to include any metamodels you still need.
Remove an import
Section titled “Remove an import”- Select the package
- In the Imports section, click the remove control next to the metamodel you want to remove
Removing an import doesn’t delete any elements that were created using that metamodel’s types. The elements remain in the model, but you won’t be able to create new elements of those types from the Palette until the import is restored.