Importing elements from existing projects¶
Overview of element import¶
The element import feature is used to import elements from other projects into your current project. The elements imported can be packages or classes.
All elements created in Modelio either graphically (in diagrams) or in the model explorer are identified in a universally unique way (site/project file/project/element) as soon as they are created. The element import operation uses these identifiers to ensure consistency.
The following logic is respected during element import operations:
A copy of the element is made, if elements with the same identifier do not yet exist.
If an element with the same identifier already exists, it is replaced.
If a newly-imported element has links towards other elements, the links are retained if the linked elements with the same identifiers exist. If not, the links are destroyed.
Importing elements from another project¶
Running an element import operation¶
Elements that can be imported into your project are presented in a standard hierarchy (packages containing classes). To view the classes contained in an importable package, simply click on the “+” on the left of the package name.
The following list describes exactly what is imported for each type of element.
Project : The entire project (packages, classes, …)
Package : Classes (with their operations, attributes, “visible” associations), documents, tagged values, diagrams
Class : Operations, attributes, “visible” associations, documents, tagged values, diagrams
Non-imported objects are:
Reference links from a package to another element that is not imported and that does not already exist in the current project
Non-oriented associations (no visibility on either side)
The import will fail if there is any inconsistency between imported elements.