Exporting and import XMI

VP-UML supports interoperability with XMI file, a standard made for data exchange. You can export project data to an XMI, edit it externally with other softwares that accepts XMI. In this chapter, you will see how to export and import XMI through the command line interface.

Exporting XMI

To export XMI from a project through command line:

  1. Browse the scripts folder under the VP Suite installation directory.
    The scripts folder inside VP Suite installation directory
    The scripts folder inside VP Suite installation directory
  2. Copy the script file ExportXMI and paste to the bin folder of VP Suite installation directory.
    Copy and paste ExportXMI from scripts folder to bin folder
    Copy and paste ExportXMI from scripts folder to bin folder
  3. Start the command prompt.
  4. Navigate to the bin folder of VP Suite installation directory.
    Navigate to the bin folder of VP Suite in command prompt
    Navigate to the bin folder of VP Suite in command prompt
  5. Execute the script by supplying the required parameters. For example:
    ExportXMI -project C:\Demo\Demo.vpp -out C:\Demo\Output\Sample.xmi -type 2.1
    Executing ExportXMI
    Executing ExportXMI
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -out The filepath of XMI file
    C:\Demo\Output\sample.xmi
    -type [optional] Version of XMI. Unless specified, the lastly generated version will be selected. Here are the possible options:
    • 1.0
    • 1.2
    • 2.1
    • 2.1UML2
    2.1
    -encoding [optional] Encoding of XMI file
     
    Parameters for ExportXMI

Importing XMI

To import XMI to a project through command line:

  1. Browse the scripts folder under the VP Suite installation directory.
    The scripts folder inside VP Suite installation directory
    The scripts folder inside VP Suite installation directory
  2. Copy the script file ImportXMI and paste to the bin folder of VP Suite installation directory.
    Copy and paste ImportXMI from scripts folder to bin folder
    Copy and paste ImportXMI from scripts folder to bin folder
  3. Start the command prompt.
  4. Navigate to the bin folder of VP Suite installation directory.
    Navigate to the bin folder of VP Suite in command prompt
    Navigate to the bin folder of VP Suite in command prompt
  5. Execute the script by supplying the required parameters. For example:
    ImportXMI -project C:\Demo\Demo.vpp -file C:\Demo\input\sample.xmi
    Executing ImportXMI
    Executing ImportXMI
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -file The filepath of the XMI file to import
    C:\Demo\input\sample.xmi
    Parameters for ImportXMI