Embedded services

Import/Export

Exporting a project

  1. Open Modelio (Workspace view active - no project open)
  2. Select a project
  3. Context menu / Export the project...

A zip file will be generated. It contains the whole project: model, modules, attached files, ...

Importing a project

This is used to import a whole Modelio project.

Input: zip archive containing a Modelio project (previously exported from Modelio)

  1. Open Modelio
  2. Run 'File / Import a project...'

The project is imported in the workspace. It is visible in the Workspace view and can be immediately opened.

There are other ways of importing models:

Importing model elements from another project

It is also possible to import only parts of an existing model:

  1. Open the target project
  2. Select the work model into which you wish to import model elements.
  3. Run 'Import/Export > Import > Import model...' command
  4. Select the 'project.conf' file of the project you wish to import elements from
  5. Select parts of the model to import
  6. Launch the Import

 

import model elementsImporting elements from another model

 

XMI Import

Models can also be imported from other tools via the XMI format.

  1. Select a Package and run the 'Import/Export > Import > XMI Import' command from the package's context menu
  2. In the 'XMI Import' box, use the browser to choose the XMI file to import'
  3. Click on 'Import'

 

xmi importImporting elements from another model

 

xmi import boxThe XMI Import dialog box

 

Jython scripts

Models can be manipulated with Jython scripts.

Create your own Jython macro with the script view:

  1. Display the script view (Tool menu 'Views > script')
  2. Either type in your script or import one
  3. Run your script

 

ScriptViewThe Modelio Script view

 

Macros can be stored in the Macros Catalog (Tool menu 'Configuration > Macros catalog...')

 

More information on XMI Import/Export

Details on using Jython scripts . You can use the Modelio API in your scripts: Developer API

^ Back to Top