Prev Next

CSV Import

It is possible to import information about elements into your project in Enterprise Architect from a CSV text file. In this operation you make use of a CSV import specification. You import the CSV file into a selected Package; if this Package or any element within the Package has a lock on it, you cannot import the CSV file into it. The 'Import' option on the dialog is grayed out.

The format and content of the CSV source data file should resemble this:

Access

Ribbon

Publish > Model Exchange > CSV > CSV Import/Export

Context Menu

Right-click on Package > Import/Export | CSV Import/Export

Import Data in CSV Format

Field

Action

See also

Package

Confirm the name of the current selected Package.

Specification

Specify the name of the import specification to use.

Import specification

Edit/New

Edit the import specification or create a new one.

File

Specify the spreadsheet filename to import from.

Types

Not used for import.

Code Page

Displays the Code Page used when importing and exporting. This can be changed via the 'Source Code Engineering' page of the 'Manage Project Options' dialog.

Code Generation Options

Action

Select the 'Import' radio button to import from the file (grayed-out if the Package or a child item in the Package is locked).

Print Results

Print out the result list.

View File

View the source CSV file with the default Windows application for CSV files.

Run

Perform the import.

Close

Click on this button to close this dialog.

Notes

  • When importing, Enterprise Architect checks the specification to see if there is a 'GUID' field included; if there is, Enterprise Architect attempts to locate the element identified by the GUID and, if successful, updates the current element rather than creating a new one
  • If no 'GUID' field is defined, or Enterprise Architect cannot locate the identified element, a new element is created and placed in the current Package; during import, 'Type' is a mandatory field in the source file and must match one or more of the legal Enterprise Architect element types: for example: Requirement, or Class
  • In the Corporate, Unified and Ultimate editions of Enterprise Architect, if security is enabled you must have both 'Export XMI' and 'Import XMI' permissions to use the 'CSV Import/Export' option

Learn more