To create a diagram by importing data from a CSV file
- Open an existing MagicDraw project or create a new project.
- Click File > Import From > Import CSV. The Import CSV: Setup screen will appear, see figure below.
- Click to browse and select the above CSV file.
- Select a for the diagram.
- Choose Diagram as the target element type since we are creating a diagram.
- Choose DiagramInfo as the target stereotype.
- Choose Class Diagram as the target diagram type.
- Click . The Import CSV: Mapping screen will open, see figure below.
- Click the first column in your CSV Data table and select the attribute Name from the Properties table on the left-hand side, and then click the button to map them, see figure above.
- Keep the name property from the Properties list selected, and also keep the DiagramName 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.
- Click . Your MagicDraw containment tree should show the newly imported class diagram, see figure below.