Overview
When planning resource utilization for a large project, the task allocation details can be defined against each element in the project and assigned to a resource (a staff member). This process can be completed in Enterprise Architect or MS Project. This script provides support to exchange project details between Enterprise Architect and MS Project. If resource utilization has already been defined external to the model, this script allows you to easily import the details into your Enterprise Architect Repository.
Import
The import script imports Tasks from MS Project and creates a tree of Elements within a Package. This element-tree reflects the MS Project task-tree structure being imported. You can then view the project management details using Enterprise Architect's Gantt chart view.
Export
The export script parses a tree of Packages and Elements and creates a hierarchical tree of Tasks in the MS Project.
Requirements
You need to have the following installed on your machine:
- Enterprise Architect, version 9.2 or later
- Microsoft Project
How to Use the Script
The attached repository contains two scripts called "Import from MS Project" and "Export to MS Project". These are implemented as "Package Scripts" that can be conveniently run using the Context Menu of Enterprise Architect's Project Browser.
Importing a file from MS Project:
- Open the attached repository in Enterprise Architect
- Select the Package named "Imports" in the Project Browser (or create and select your own Package for this purpose)
- Right-click on the Package
- Select Scripts | Import from MS Project from the context menu
You will be prompted to select the directory that contains the source MS Project File (*.mpp).
After the Project file is imported, you can:
- Open the Package diagram
- Check the diagram is set to Gantt View.
To view a diagram using the Gantt Chart View:
- Right-click on the Package diagram
- Select Gantt View from the context menu
Note: To make this the default setting for this diagram, set the option via the menu: Diagram | Properties | Digram | [x] Always open as Gantt.
Exporting a Package to MS Project:
- Open the attached repository in Enterprise Architect
- Select the Package named "Use Case Model" in the Project Browser
- Right-click on a Package
- Select Scripts | Export to MS Project from the context menu
You will be prompted to select the directory that contains the source MS Project File (*.mpp).