Import XMI in Visual Paradigm Desktop

Visual Paradigm Desktop provides an XMI import feature that allows users to bring UML models and other supported modeling data from external applications into an existing Visual Paradigm project. By supporting XML Metadata Interchange (XMI), a standardized format for exchanging model information between modeling tools, Visual Paradigm helps teams migrate models, integrate work from different environments, and continue modeling without having to recreate their models manually.

The Import XMI feature provides configurable import options for handling model comments, generating unique element IDs, arranging imported diagrams, managing stereotypes, and matching imported model elements with existing project data. Users can also control whether the project should follow the imported XMI model more closely, including identifying elements that are not present in the imported file.

Import XMI is available through the Visual Paradigm Desktop user interface and can also be performed through a command-line script for automated or repeatable import workflows.

What Is Import XMI in Visual Paradigm?

Import XMI is a model interoperability feature in Visual Paradigm Desktop that imports modeling information stored in an XMI file into the currently open Visual Paradigm project.

XMI, short for XML Metadata Interchange, is an OMG standard for exchanging metadata and model information between software tools. It is commonly used to transfer UML models between different UML modeling applications and other tools that support compatible XMI specifications.

Instead of manually recreating model elements, relationships, and supported diagram information, users can import an XMI file and allow Visual Paradigm to interpret its contents and incorporate the imported model data into the active project.

The import process is designed to work with an existing project. Visual Paradigm uses a model-matching mechanism to determine how imported elements correspond to elements already in the project and applies changes based on the imported information and selected import settings.

What Can an XMI File Contain?

An XMI file can contain structured modeling information, depending on the exporting application’s implementation and the XMI version being used. For UML modeling, this may include information such as:

  • Model elements: UML elements such as classes, interfaces, packages, use cases, actors, components, and other supported modeling elements.
  • Element properties: Names, attributes, operations, visibility, and other supported properties associated with model elements.
  • Relationships: Connections between model elements, such as associations, dependencies, generalizations, and other supported UML relationships.
  • Model organization: Packages and other structural information used to organize a model.
  • Diagram information: Supported diagram structures and presentation information, depending on the exporting tool and XMI implementation.
  • Comments and documentation: Comment information that may be imported as descriptions or model notes, depending on the import settings and XMI version.

The actual information that can be imported depends on the XMI specification version, the source application’s implementation, and the modeling constructs supported by Visual Paradigm. XMI compatibility does not guarantee that every proprietary extension or application-specific property will be transferred identically.

Why Is Import XMI Essential?

Import XMI helps organizations and development teams move modeling information between compatible software environments while preserving reusable model data. It reduces migration effort and provides a practical way to continue working with models created outside Visual Paradigm.

Migrate Models from Other UML Tools

When an organization changes its modeling software, recreating existing models manually can be time-consuming and error-prone. Import XMI provides a standardized migration path for bringing models from another application into Visual Paradigm, provided that the source application supports a compatible XMI export.

Reuse Existing Modeling Work

Teams can continue developing existing UML models instead of starting from scratch. Imported model elements can serve as the foundation for further modeling, refinement, documentation, and design activities in Visual Paradigm.

Support Cross-Tool Interoperability

Different development teams may use different modeling applications. XMI provides a common exchange format that helps teams transfer supported model information between these environments.

Reduce Manual Reconstruction

Manually recreating a model requires rebuilding its elements and relationships. Importing XMI automates the transfer of supported model information, reducing repetitive work and the risk of introducing inconsistencies during reconstruction.

Synchronize Model Information

When an updated XMI file is available, users can import it into an existing Visual Paradigm project. The matching mechanism helps determine how imported information corresponds to existing project elements and how changes should be applied.

However, importing XMI should not be treated as an automatic conflict-free synchronization service. The resulting changes depend on the imported data, matching behavior, and selected options.

Support Automated Import Workflows

For users who need to import XMI files repeatedly or incorporate model importing into a larger development workflow, Visual Paradigm also provides a command-line import script. This makes it possible to execute an import operation by specifying the target project and source XMI file.

Edition and Availability

The Import XMI feature is available in the following Visual Paradigm Desktop editions:

  • Enterprise Edition
  • Professional Edition
  • Standard Edition
  • Modeler Edition

Community Edition does not include the Export and Import XMI feature.

Import XMI is a built-in interoperability capability of Visual Paradigm Desktop. It is separate from Visual Paradigm Online and should not be confused with importing diagrams or other content through the online application.

Import XMI Functionality Breakdown

The Import XMI window provides several settings that control how the source XMI file is processed and incorporated into the currently open project. Understanding these options helps users select the appropriate import behavior for different migration and model-update scenarios.

Selecting the XMI File Path

The File path field specifies the location of the XMI file that Visual Paradigm should import.

Users need to provide the path to the source XMI file generated by another modeling application or exported from a compatible modeling environment.

This setting identifies the source data for the import operation. It does not specify a destination project because the import is performed against the currently open Visual Paradigm project.

Practical considerations:

  • Ensure that the specified file exists and is accessible.
  • Verify that the file contains valid XMI data rather than an unrelated XML document.
  • Confirm that the exporting application uses an XMI version and modeling representation compatible with Visual Paradigm.
  • When importing a file from another computer or team member, ensure that the file has been transferred completely.

Import Comment as Note

The Import Comment as Note option controls how comment information in an XMI 2.1 file is interpreted during import.

Comments in a UML model can contain explanatory text, documentation, or additional information associated with model elements. Depending on the selected import behavior, Visual Paradigm can interpret imported comments as either descriptions or notes associated with the model.

This option is specifically identified for XMI 2.1 imports. It should not be assumed to have the same effect when importing other XMI versions.

Why this option matters:

  • Description-oriented documentation: Importing comments as descriptions allows the comment information to be treated as descriptive information associated with model elements.
  • Note-oriented documentation: Importing comments as notes preserves the information in a note-oriented modeling representation.

The appropriate choice depends on how the source model uses comments and how the information should be represented in the destination project.

Generate New ID for Elements Not Found in Current Project

The Generate new ID for elements not found in current project option allows Visual Paradigm to generate new identifiers for imported elements that cannot be found in the currently open project.

Model element identifiers help distinguish individual elements within a project. When importing model data from another project, identifier collisions or overlapping identifiers may need to be addressed.

Enabling this option helps ensure the uniqueness of identifiers across projects by generating new IDs for elements that are not found in the current project.

When should this option be used?

  • When importing a model originating from another Visual Paradigm project.
  • When combining model data from different projects.
  • When the source and destination projects may contain overlapping element identifiers.
  • When maintaining unique identifiers across imported model data is important.

This option concerns model element identification. It should not be interpreted as generating new names for elements or changing their UML element types.

Auto Layout after Imported

The Auto Layout after imported option determines whether Visual Paradigm automatically performs diagram layout after importing the XMI data.

Diagram layout affects how diagram elements are positioned and arranged visually. When imported diagram information is processed, automatic layout can help organize the resulting diagrams without requiring users to manually reposition every shape.

Benefits of automatic layout include:

  • Improving the visual organization of imported diagrams.
  • Reducing manual diagram-arrangement work after migration.
  • Helping users review imported models more easily.
  • Providing a more organized starting point for subsequent diagram editing.

Performance consideration: Automatic layout may take additional time when importing a large amount of diagram data. For projects containing many diagrams or complex diagram structures, users should consider the additional processing time before enabling this option.

Automatic layout is a presentation-related operation. It should not be confused with changing the underlying meaning of UML relationships or model elements.

Suppress Super Stereotype

The Suppress Super Stereotype option determines whether Visual Paradigm ignores super stereotypes during XMI importing.

Stereotypes are UML extension mechanisms that allow modelers to introduce additional classifications or semantics to model elements. They are commonly used to customize UML models for particular domains, technologies, or modeling conventions.

In some models, stereotype information may include super stereotype relationships. This import option controls whether super stereotype information should be suppressed during the import process.

When should this option be considered?

  • When importing models that use custom stereotype definitions.
  • When working with XMI files containing stereotype-related information.
  • When the destination model should ignore super stereotype information during import.

Suppressing super stereotypes does not mean that all stereotype information is removed. The option specifically concerns super stereotype handling. Users should avoid assuming that it disables every UML profile or stereotype in the imported model.

Matching

The Matching setting determines how Visual Paradigm matches elements in the imported XMI file with elements in the currently open project.

Importing XMI is not simply a process of placing a completely separate collection of model elements into a project. Visual Paradigm processes the imported information in relation to the existing model. Matching helps identify corresponding elements so that changes can be applied to the appropriate model data.

For example, suppose a class named Customer exists in both the current Visual Paradigm project and the imported XMI file. The matching process helps determine whether these represent corresponding model elements and how the imported information should be applied.

The matching mechanism is important when:

  • Updating a model using a newer XMI export.
  • Importing model data that overlaps with existing project content.
  • Combining modeling information from different sources.
  • Maintaining continuity between previously imported elements and updated external model data.

The exact matching choices and their effects should be evaluated in the Import XMI window of the installed Visual Paradigm version. The available documentation describes the purpose of Matching but does not establish a universal set of matching modes that applies to every version.

Important: Matching affects how imported data corresponds to existing project data. It should not be confused with the separate option that determines whether elements absent from the imported XMI should be identified for deletion.

Fully Follow Import XMI

The Fully follow import XMI option allows the current Visual Paradigm project to follow the imported XMI model more completely.

When this option is enabled, Visual Paradigm prompts the user to delete model elements that do not exist in the imported XMI file.

This is particularly relevant when the imported XMI represents the intended complete state of a model rather than only a subset of model information.

Example:

Suppose the current Visual Paradigm project contains the following classes:

  • Customer
  • Order
  • Product
  • Payment

The imported XMI file contains only:

  • Customer
  • Order
  • Product

When Fully follow import XMI is enabled, Visual Paradigm prompts the user to delete model elements that are not present in the imported XMI. In this example, Payment is an element that may be identified for deletion.

Important considerations:

  • Review the deletion prompt carefully before confirming.
  • Do not enable this option casually when the existing project contains additional model elements that must be retained.
  • Understand whether the XMI file represents the complete intended model or only a partial export.
  • Save a backup of the destination project before performing an import that may remove existing model elements.

This option is particularly important when updating an existing model from an authoritative external source. It allows the destination project to more closely reflect the contents of the imported XMI rather than retaining model elements that are absent from the source.

Import Button

The Import button starts the XMI import operation using the specified file and configured options.

When the import is initiated, Visual Paradigm processes the source file and applies the imported model information to the currently open project according to the selected settings.

Before starting the operation, users should review the source file, matching configuration, ID-generation setting, layout setting, stereotype handling, and deletion behavior.

Cancel Button

The Cancel button closes the Import XMI window without starting the import operation.

Use Cancel when the wrong XMI file has been selected, the import settings need to be reviewed, or the import should not proceed.

Help Button

The Help button provides access to the relevant Visual Paradigm help documentation for the Import XMI functionality.

How to Import an XMI File into Visual Paradigm Desktop

Importing an XMI file through the Visual Paradigm Desktop interface involves selecting the source file, configuring the import options, and executing the import operation.

Step 1: Open the Destination Visual Paradigm Project

Start Visual Paradigm Desktop and open the project into which you want to import the XMI model.

The import operation targets the currently open project, so ensure that you have selected the correct destination before proceeding.

If you are importing into an existing project that contains important model information, save a backup copy before starting.

Step 2: Open the Import XMI Command

From the main menu, select:

Project > Import > XMI…

Visual Paradigm displays the Import XMI window.

Step 3: Specify the XMI File

In the Import XMI window, specify the file path of the XMI file that you want to import.

Ensure that you have selected the correct file and that it contains the intended model information.

Step 4: Configure the Import Options

Review the available import settings and configure them according to your requirements.

Depending on the source model and intended result, consider the following:

  • Import Comment as Note: Determine how comments in an XMI 2.1 file should be interpreted.
  • Generate new ID for elements not found in current project: Generate new identifiers for imported elements that are not found in the current project.
  • Auto Layout after imported: Automatically arrange imported diagrams.
  • Suppress Super Stereotype: Ignore super stereotype information during importing.
  • Matching: Determine how imported model elements are matched against existing project elements.
  • Fully follow import XMI: Allow Visual Paradigm to identify model elements that are absent from the imported XMI and prompt for their deletion.

Not every option is necessary for every import. Select the settings based on the source XMI file and the desired result.

Step 5: Start the Import

After specifying the XMI file and reviewing the import settings, click Import or OK to start the import operation, depending on the dialog presentation in your installed version.

If Fully follow import XMI is enabled, review the deletion prompt and determine whether the identified model elements should be removed.

Step 6: Review the Imported Model

After importing, inspect the resulting project to verify that the expected model information has been incorporated correctly.

In particular, review:

  • Whether the expected model elements are present.
  • Whether important relationships have been transferred.
  • Whether packages and model organization are appropriate.
  • Whether imported comments and descriptions have been represented as intended.
  • Whether stereotype information has been handled appropriately.
  • Whether the resulting diagrams are readable and correctly arranged.
  • Whether any existing project elements have been updated or removed as expected.

Save the project after verifying the imported information.

Import XMI Using the Command Line

Visual Paradigm Desktop also supports importing XMI files through a command-line script named ImportXMI.

This approach is useful when importing models as part of a repeatable workflow, executing an import without manually configuring the graphical interface each time, or integrating the import operation into a larger development process.

Command-Line Import Requirements

To perform a command-line XMI import, users need:

  • A Visual Paradigm Desktop installation.
  • The destination Visual Paradigm project file, typically a .vpp file.
  • The source XMI file.
  • Access to the ImportXMI script included in the Visual Paradigm installation.
  • Access to the installation’s bin directory and a command-line environment.

Step 1: Locate the ImportXMI Script

Browse to the scripts folder under the Visual Paradigm installation directory.

On macOS, the script folder can be located inside the Visual Paradigm application package. Right-click the application and select Show Package Contents, then navigate to:

Contents/Resources/app/scripts

Step 2: Copy the Script into the Bin Folder

Copy the ImportXMI script file from the scripts folder and paste it into the bin folder of the Visual Paradigm installation directory.

Step 3: Open a Command-Line Window

Start the command prompt or terminal on your operating system.

Navigate to the bin folder of the Visual Paradigm installation directory.

Step 4: Execute the Import Command

Run the ImportXMI script with the required project and file parameters.

ImportXMI -project C:\Demo\Demo.vpp -file C:\Demo\input\sample.xmi

In this example:

  • -project specifies the destination Visual Paradigm project file.
  • -file specifies the source XMI file to import.

Command-Line Parameters

Parameter Description Example
-project Specifies the path of the Visual Paradigm project that will receive the imported model. C:\Demo\Demo.vpp
-file Specifies the path of the XMI file to import. C:\Demo\input\sample.xmi

Understanding the Command-Line Import Workflow

The command-line import workflow is designed around two essential inputs: the destination project and the source XMI file.

Unlike the graphical Import XMI window, the documented command-line syntax does not expose the individual graphical import settings as command-line parameters. Users should therefore avoid assuming that the command-line script accepts options such as Auto Layout, Import Comment as Note, Matching, or Fully follow import XMI as additional arguments.

For imports requiring explicit configuration of these settings, use the graphical Import XMI interface.

Practical Import XMI Workflows

The Import XMI feature supports several common modeling scenarios. Understanding the intended workflow helps users choose the right import settings and avoid unintended changes to their projects.

Workflow: Migrating a UML Model from Another Modeling Tool

Objective: Move an existing UML model from another modeling application into Visual Paradigm Desktop.

Recommended workflow:

  1. Export the UML model from the source application in a supported XMI format.
  2. Open the destination Visual Paradigm project or create a suitable project.
  3. Select Project > Import > XMI.
  4. Specify the exported XMI file.
  5. Review the available import options, including comment handling and stereotype suppression where applicable.
  6. Consider enabling new ID generation when importing elements that are not found in the destination project.
  7. Start the import operation.
  8. Review the imported model elements, relationships, and diagrams.
  9. Save the destination project after verification.

This workflow is appropriate when moving existing modeling work into Visual Paradigm while preserving as much supported model information as possible.

Workflow: Updating an Existing Model from an External XMI File

Objective: Incorporate model changes made in another application into an existing Visual Paradigm project.

Recommended workflow:

  1. Obtain the latest XMI export from the source application.
  2. Open the Visual Paradigm project that contains the earlier version of the model.
  3. Save a backup of the destination project.
  4. Open the Import XMI window.
  5. Specify the updated XMI file.
  6. Review the Matching setting to determine how imported elements should correspond to existing project elements.
  7. Configure other import options as required.
  8. Start the import.
  9. Review the resulting model and verify that the intended updates have been applied.

Importing an older XMI export can overwrite newer project information with older source information. For example, if a class was renamed in Visual Paradigm after the XMI file was exported, importing that earlier XMI file may restore the class’s previous name.

Therefore, users should always verify the date and intended version of the source XMI file before using it to update an existing project.

Workflow: Making the Visual Paradigm Project Follow an External Model

Objective: Bring the destination project into closer alignment with an authoritative XMI model.

Recommended workflow:

  1. Obtain an XMI file representing the complete intended model.
  2. Open the destination Visual Paradigm project.
  3. Back up the project before importing.
  4. Open the Import XMI window and specify the source file.
  5. Review the Matching setting and other relevant import options.
  6. Enable Fully follow import XMI.
  7. Start the import operation.
  8. Carefully review the prompt identifying model elements that are not present in the imported XMI.
  9. Confirm deletion only when those elements are genuinely no longer required.
  10. Review and save the resulting project.

This workflow is appropriate when the imported XMI is intended to represent the complete model state. It is not recommended when the source file contains only a partial model and the destination project contains additional elements that must be retained.

Workflow: Importing Models with Comments and Documentation

Objective: Preserve and appropriately represent comment information when importing an XMI 2.1 model.

Recommended workflow:

  1. Confirm that the source file uses XMI 2.1.
  2. Open the Import XMI window.
  3. Specify the source XMI file.
  4. Review the Import Comment as Note option.
  5. Choose the appropriate interpretation for the imported comment information.
  6. Start the import.
  7. Inspect the imported model elements and their associated descriptions or notes.

This workflow is particularly useful when migrating documented UML models where comments contain important design explanations or business information.

Workflow: Importing a Large Model

Objective: Import a model containing a substantial amount of diagram data while managing processing time and diagram organization.

Recommended workflow:

  1. Verify that the source XMI file is complete and compatible.
  2. Open the destination project and save a backup.
  3. Specify the XMI file in the Import XMI window.
  4. Review the Auto Layout after imported setting.
  5. Consider disabling automatic layout if additional layout processing would significantly increase the import time or is not immediately necessary.
  6. Review the remaining import options.
  7. Start the import operation.
  8. Inspect the imported diagrams and arrange them as needed.

Visual Paradigm notes that automatic layout can take additional time when processing a massive amount of diagram data. For large imports, users should consider the trade-off between automatic diagram organization and processing time.

Important Considerations Before Importing XMI

Although XMI provides a standardized way to exchange modeling information, importing a file from another application requires attention to compatibility, existing project data, and import behavior.

XMI Version and Application Compatibility

XMI is a standard, but different modeling applications may implement different XMI versions, UML versions, extensions, and serialization conventions.

Two applications supporting XMI do not necessarily guarantee complete compatibility with every model exported by the other application.

Before importing, verify:

  • The XMI version used by the source application.
  • Whether the source application exports UML model information in a compatible form.
  • Whether custom extensions or proprietary modeling constructs are present.
  • Whether important model properties and relationships are represented in the exported file.

Existing Project Changes May Be Overwritten

Importing XMI can update existing project information based on the imported data and matching behavior.

Visual Paradigm specifically warns that changes made in the current project may be overwritten by information from the imported XMI file.

For example, if a class named Foo was renamed to Bar in the current project, importing an XMI file exported before that rename can change the class name back to Foo.

Always check whether the source XMI represents the intended version of the model before importing it into an actively maintained project.

Importing XMI Is Not the Same as Opening an XML File

XMI is an XML-based exchange format, but not every XML file is an XMI file.

Visual Paradigm’s Import XMI function is designed to process XMI model data. An arbitrary XML document, configuration file, or XML export from an unrelated application cannot be assumed to be importable through this feature.

Use the appropriate import command for the actual file format rather than selecting Import XMI simply because the source file has an XML-related extension.

Not All Source Application Features Are Guaranteed to Transfer

XMI primarily provides a standardized representation of model information. Application-specific features, proprietary properties, custom diagram presentations, and extensions may not have equivalent representations in the destination application.

As a result, a successful import does not necessarily mean that every aspect of the original source project has been reproduced identically.

Users should inspect important model elements, relationships, documentation, and diagrams after importing.

Be Careful with Fully Follow Import XMI

The Fully follow import XMI option can prompt users to delete model elements that do not exist in the imported file.

This behavior is useful when the source XMI represents the complete intended model. However, it can be inappropriate when the source file is only a partial export.

Before confirming any deletion, establish whether the imported XMI contains the entire model or only selected model information.

Automatic Layout May Increase Processing Time

Automatic diagram layout can improve the presentation of imported diagrams, but processing a large amount of diagram data may take additional time.

Users working with large models should consider whether automatic layout is necessary immediately after importing or whether diagram arrangement can be reviewed separately.

Import XMI vs. Other Import Options in Visual Paradigm

Visual Paradigm Desktop supports several import mechanisms for different types of external data. Choosing the correct one depends on the source application and the format being imported.

Import Feature Purpose Typical Use Case
Import XMI Imports model information from a compatible XMI file. Migrating or updating UML models from another XMI-supporting modeling application.
Import UML2 Imports model information using the Eclipse UML2 XML format. Interoperability with tools that export compatible UML2 model files.
Import XML Imports XML data previously exported from Visual Paradigm using its project XML functionality. Updating Visual Paradigm project information after making supported changes externally.
Import Project Imports content from another Visual Paradigm project. Reusing or incorporating project content from another Visual Paradigm project.
Import Excel Imports supported modeling information from Excel files. Applying model data changes made through Excel-based workflows.

Important distinction: XMI, UML2, and Visual Paradigm project XML are different exchange formats. Although they may all use XML-based representations, they are not interchangeable. Select the import function that corresponds to the actual format of the source file.

Troubleshooting XMI Import Problems

If an XMI file cannot be imported successfully or the resulting model does not look as expected, investigate the source file, format compatibility, import settings, and destination project.

The XMI File Cannot Be Imported

Possible causes:

  • The selected file is not a valid XMI document.
  • The file is incomplete or corrupted.
  • The source application uses an unsupported or incompatible XMI representation.
  • The file contains extensions or modeling constructs that Visual Paradigm cannot process.
  • The selected file is not the intended XMI export.

Recommended actions:

  • Verify that the file was exported successfully from the source application.
  • Confirm the XMI version and export format.
  • Try generating a fresh XMI export from the source application.
  • Check whether the source application provides different XMI export options.
  • Verify that the destination project can be opened and modified normally.

Some Model Elements Are Missing After Import

Possible causes:

  • The source XMI does not contain all the expected model elements.
  • Some source application constructs are not supported or are represented differently.
  • The source file contains proprietary extensions that are not interpreted as expected.
  • The model was exported with limited scope or selection.

Recommended actions:

  • Check the source model to confirm that the missing elements were included in the XMI export.
  • Review the source application’s XMI export settings.
  • Verify that the relevant model elements are supported by the destination application.
  • Compare the imported project against the source model to identify specific differences.

Existing Model Information Has Changed Unexpectedly

Possible causes:

  • The imported XMI was exported before more recent changes were made in Visual Paradigm.
  • The Matching configuration caused imported data to correspond with existing elements.
  • The imported source contains older element properties or names.

Recommended actions:

  • Verify the source XMI’s export date and model version.
  • Review the Matching setting before importing again.
  • Use a backup to restore the previous project state if necessary.
  • Import a newer XMI file when the existing project contains more recent changes that should be preserved.

Unexpected Model Elements Are Identified for Deletion

Possible cause: Fully follow import XMI is enabled, and the destination project contains elements that are absent from the imported XMI file.

Recommended actions:

  • Check whether the imported XMI represents the complete model.
  • Review the elements identified for deletion.
  • Cancel or avoid confirming deletion if the source file is only a partial model.
  • Import again with Fully follow import XMI disabled when retaining additional destination elements is necessary.

Imported Diagrams Are Poorly Arranged

Possible causes:

  • The source application uses different diagram layout conventions.
  • The exported XMI does not preserve all original presentation information.
  • Automatic layout was not enabled during importing.

Recommended actions:

  • Review the Auto Layout after imported option.
  • Use automatic layout when appropriate.
  • Manually arrange diagrams after importing when the original presentation needs refinement.

Comment Information Is Not Represented as Expected

Possible causes:

  • The source file is not XMI 2.1.
  • The source application exports comment information differently.
  • The Import Comment as Note setting is not configured as intended.

Recommended actions:

  • Verify the XMI version.
  • Review the Import Comment as Note setting for XMI 2.1 files.
  • Inspect the source application’s representation of comments.

Command-Line Import Does Not Execute

Possible causes:

  • The ImportXMI script has not been copied into the Visual Paradigm bin folder.
  • The command is being executed from an incorrect directory.
  • The destination project path is incorrect.
  • The source XMI file path is incorrect or inaccessible.

Recommended actions:

  • Verify that the ImportXMI script is in the expected installation directory.
  • Navigate to the Visual Paradigm bin folder before executing the command.
  • Check the -project and -file parameter values.
  • Confirm that both the destination project and source XMI file are accessible.

Frequently Asked Questions About Import XMI

What is Import XMI in Visual Paradigm?

Import XMI is a feature in Visual Paradigm Desktop that imports model information from an XMI file into the currently open Visual Paradigm project. It supports model interoperability and migration between compatible modeling applications.

What does XMI stand for?

XMI stands for XML Metadata Interchange. It is an OMG standard for exchanging metadata and model information between compatible software applications, particularly UML modeling tools.

Which Visual Paradigm editions support Import XMI?

Import XMI is available in Visual Paradigm Desktop Enterprise, Professional, Standard, and Modeler editions. It is not included in Community Edition.

How do I import an XMI file into Visual Paradigm Desktop?

Open the destination project, select Project > Import > XMI…, specify the XMI file path, configure the available import settings, and click Import or OK to execute the operation.

Can I import XMI into an existing Visual Paradigm project?

Yes. The Import XMI feature is specifically designed to import XMI model information into the currently open project. Visual Paradigm uses matching to determine how imported information corresponds to existing project elements.

Does importing XMI create a new Visual Paradigm project?

No. The standard Import XMI operation imports model information into the currently open Visual Paradigm project. It does not create a separate project automatically.

Can I import XMI from another UML modeling tool?

Yes, provided that the source modeling application supports XMI and produces an XMI file compatible with Visual Paradigm. Compatibility depends on the XMI version, UML representation, and any application-specific extensions used in the file.

Does Visual Paradigm support XMI 2.1?

Visual Paradigm’s Import XMI interface documents an Import Comment as Note option specifically for XMI 2.1 files. The exact compatibility of other XMI versions and source-specific extensions should be verified against the actual file and installed product version.

What does Import Comment as Note do?

Import Comment as Note controls how comment information in an XMI 2.1 file is represented in the imported model. The comment information can be interpreted as a model description or as a note, depending on the selected behavior.

What does Generate new ID for elements not found in current project do?

This option generates new identifiers for imported model elements that are not found in the current project. Its purpose is to help ensure identifier uniqueness across projects when importing model data.

Why should I enable Generate new ID for elements not found in current project?

Enable this option when importing elements from another project and you want Visual Paradigm to generate new IDs for elements that do not already exist in the destination project. This is particularly useful when combining model information from different projects.

What does Auto Layout after imported do?

Auto Layout after imported determines whether Visual Paradigm automatically arranges diagrams after the XMI import operation. It can improve diagram readability, but may increase processing time when importing a large amount of diagram data.

What does Suppress Super Stereotype mean?

Suppress Super Stereotype determines whether Visual Paradigm ignores super stereotype information during XMI importing. It is a specific stereotype-handling option and should not be interpreted as suppressing every stereotype in the model.

What does Matching mean in the Import XMI window?

Matching determines how Visual Paradigm identifies corresponding elements between the imported XMI data and the currently open project. It helps determine how imported information should be applied to existing model data.

What does Fully follow import XMI do?

Fully follow import XMI allows the destination project to follow the imported XMI more completely. When enabled, Visual Paradigm prompts the user to delete model elements that do not exist in the imported XMI file.

Will importing XMI delete existing model elements?

It can. In particular, enabling Fully follow import XMI causes Visual Paradigm to prompt for deletion of model elements that are absent from the imported XMI. Users should carefully review the deletion prompt before confirming.

Will importing XMI overwrite existing model information?

Yes, imported XMI information can overwrite changes in the destination project. For example, importing an older XMI export may restore an earlier class name and overwrite a newer name assigned in Visual Paradigm.

Does Import XMI support automatic model synchronization?

Import XMI supports importing updated model information into an existing project and uses matching to determine how imported and existing elements correspond. However, it should not be regarded as a continuous, automatic, conflict-free synchronization service. Users should review the source version and resulting changes after importing.

Can I import an ordinary XML file using Import XMI?

Not necessarily. XMI is an XML-based standard, but not every XML document is an XMI document. The Import XMI function is intended for compatible XMI model files, not arbitrary XML files.

What is the difference between Import XMI and Import XML?

Import XMI is intended for exchanging model information using the XMI standard. Import XML is a separate Visual Paradigm project-data exchange function designed for XML files exported through Visual Paradigm’s own XML functionality. The two formats serve different interoperability workflows.

Can I import an XMI file using the command line?

Yes. Visual Paradigm provides an ImportXMI command-line script. It accepts the destination project path through the -project parameter and the source XMI file path through the -file parameter.

What is the command for importing XMI?

The documented command syntax is:

ImportXMI -project C:\Demo\Demo.vpp -file C:\Demo\input\sample.xmi

Replace the example project and XMI paths with the actual paths on your computer.

Can I import multiple XMI files into the same project?

The Import XMI workflow operates on a specified XMI file at a time. Users can perform separate import operations for additional files, but should carefully consider matching, identifier uniqueness, and possible changes to existing project elements when importing multiple sources.

Does importing XMI preserve all original diagrams?

Not necessarily. The result depends on the XMI file, the source application’s export implementation, and the modeling information supported by Visual Paradigm. Users should inspect the imported diagrams and verify that the expected elements and relationships have been transferred.

Does Import XMI preserve custom stereotypes?

Stereotype information may be transferred when it is represented in a compatible form. The Suppress Super Stereotype option specifically controls whether super stereotype information is ignored during importing. The preservation of custom stereotype definitions and related extensions depends on the source XMI and its compatibility with Visual Paradigm.

Can I import XMI without changing my existing project?

Importing XMI is intended to incorporate model information into the currently open project and may update existing elements. If you need to preserve the original project unchanged, create a separate backup or duplicate project and perform the import there.

What should I do before importing a large XMI file?

Verify the source file, confirm its compatibility, save a backup of the destination project, review the matching and deletion settings, and consider the processing impact of enabling Auto Layout after imported.

Why are some model elements missing after XMI import?

Some elements may be missing because they were not included in the source XMI export, are not represented in a compatible form, or use application-specific modeling constructs that Visual Paradigm does not interpret as expected. Check the source model and export settings before investigating the destination project.

Is Import XMI available in Visual Paradigm Online?

This article describes the Import XMI feature in Visual Paradigm Desktop. Desktop XMI import should not be confused with the separate importing capabilities provided by Visual Paradigm Online.

Summary

Import XMI in Visual Paradigm Desktop provides a practical way to migrate and exchange supported model information between compatible modeling applications. By importing standardized XMI files into an existing project, users can reuse UML models, incorporate external modeling changes, and continue their modeling work without manually recreating every element.

The feature provides configurable controls for comment interpretation, element ID generation, automatic diagram layout, super stereotype handling, model matching, and deletion of elements that are absent from the imported XMI.

For users who need a repeatable or script-based import process, the ImportXMI command-line utility provides an alternative to the graphical interface.

To achieve reliable results, users should verify XMI compatibility, select the correct source model, review the import settings, protect existing project data with backups, and inspect the imported model after the operation.

Scroll to Top