Once you have successfully created a Class Diagram, the next step is to import Classes into your diagram. The following example shows you the steps to import classes into the class diagram.

To import classes into a diagram


  1. Open up the CSV Import plugin by clicking File > Import From > Import CSV. The Import CSV: Setup screen will open, see figure below.

     Importing Classes to a Class Diagram

  2. Click to browse and select your CSV file.
  3. Select a Target Package for the classes.
  4. Select Class as a target element type.
  5. Click to move onto the Import CSV: Mapping dialog, see figure above.
  6. Select the ClassName column from the CSV Data table and select Name attribute from the Properties list, and then click to map them.

     Mapping CSV Columns with Properties

  7. Select the Diagram column from the CSV Data table and select a row of Diagram and type Diagram from the Properties list, and then click .
  8. Keep the name property from the Properties list selected, and also keep the ClassName column from CSV data source selected, then click the  button beside   the Key Property textboxes. The Key Property textboxes should populate as shown in figure above.
  9. Click . Your MagicDraw containment tree should now be populated as shown below in figure below.

    Imported Classes Shown in the Containment Tree