Now that we have an empty state machine diagram shown above, we can start to add pseudo state information to it.

To add pseudo state information to the state machine diagram from the previous section


  1. Click File > Import From > Import CSV to start the CSV Import plugin wizard interface, see figure below.

    Imported State Machine Diagram Shown in the Containment Tree

  2. Click to browse and select your CSV file.

  3. Choose a target element of type Pseudostate as shown in figure above.

  4. Click to proceed to mapping options, see figure below.

    Importing Pseudo State Information into a State Machine Diagram 

  5. Click the column PseudoState in the CSV file and select name from the Properties list, and then click .

  6. Keep the name property from the Properties list selected, and also keep the PseudoState 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.

  7. Click the column StateKind from the CSV and the property kind from the Properties list, and then click

  8. Click the column StateOwner and the property owner, and then click .

  9. Lastly, click DiagramPath from the CSV file and select Diagram from the Properties list, and then click .

  10. Click . Your MagicDraw Containment tree should be updated with the imported objects as in figure below.

    The Imported Pseudo State Shown in the Containment Tree