Integrations (PTC products, 3rd party products and code) > 3rd party product integrations (CM, DOORS, Rose, Simulink and XML) > XMI Integration > Creating and tidying up diagrams after an import > Creating and tidying up diagrams after an XMI import - use case diagrams (XMI Import/Export)
  
Creating and tidying up diagrams after an XMI import - use case diagrams (XMI Import/Export)
An XMI import creates Actors, Use Cases, Generalizations, interactions, «include» relationships, «extend» relationships, Constraints and Comments in the Model, but does not create any Use Case Diagrams.
After performing an XMI import, you may want to create Use Case Diagrams to show imported items and their relationships.
Through the Dictionary pane, you can see which Actors and Use Cases have been created in the Model. Through the Relationships pane, you can see how those Actors and Use Cases relate to each other through Generalization, interaction, «include» and «extend» relationships.
* 
You can quickly find an item in the Relationships pane by right-clicking the item, pointing to Find, and then clicking In Relationships pane.
Creating the use case diagram
Create a Use Case Diagram by right-clicking the appropriate Package, pointing to New, pointing to Diagram, and then clicking Use Case Diagram.
Dragging actors and use cases to the use case diagram
After creating the diagram, drag the imported Actors and Use Cases from a Modeler pane to the diagram. After adding Actors and Use Cases to the diagram, use the populate commands to populate missing links on the diagram.
Populating missing generalizations
The Relationships pane shows which Actors and which Use Cases are related through Generalizations:
When you expand an Actor, the Parents and Children folders show Actors that are related through Generalizations.
When you expand a Use Case, the Parents and Children folders show Uses Cases that are related through Generalizations.
On the Use Case diagram, populate missing Generalizations for an Actor or Use Case:
Right-click an Actor, point to Populate, and then click Parent Actors or Child Actors.
Right-click a Use Case, point to Populate, and then click Parent Use Cases or Child Use Cases.
Populating missing interactions
The Relationships pane shows which Actors and Use Cases are related through interactions:
When you expand an Actor, the Use Cases folder shows Use Cases that are related through interactions.
When you expand a Use Case, the Actors folder shows Actors that are related through interactions.
On the Use Case diagram, populate missing interactions for an Actor or Use Case:
Right-click an Actor, point to Populate, and then click Related Use Cases
Right-click a Use Case, point to Populate, and then click Related Actors.
Populating missing «extend» and «include» relationships
The Relationships pane shows which Use Cases are related through «extend» and «include» relationships: when you expand a Use Case, the Includes, Included By, Extends and Extended By folders show Use Cass that are related through «extend» and «include» relationships.
On the Use Case diagram, populate missing «extend» and «include» relationships by right-clicking the Use Case, pointing to Populate, and then clicking Related Use Cases.
Populating missing constraints
The Relationships pane shows Constraints that are applied to an item – expand the item, and then expand the Applied Constraints folder.
On the Class Diagram, populate missing Constraints for items – right-click an item, point to Populate, and then click Constraints.
Populating missing comments
The Relationships pane shows Comments that are applied to an item – expand the item, and then expand the Applied Comments folder.
On the Class Diagram, populate missing Comments for items – right-click an item, point to Populate, and then click Comments.
Tidying up the diagram
After adding items to the diagram and populating links, drag the items and links to the required positions. You can resize most symbol types. You can create a way point in a link by dragging the link.