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 - composite structure diagrams (XMI Import/Export)
  
Creating and tidying up diagrams after an XMI import - composite structure diagrams (XMI Import/Export)
An XMI import creates Classes, Data Types, Interfaces, Signals, Actors, Parts, Ports, Dependencies, Associations, IO Flows, Constraints and Comments in the Model, but does not create any Composite Structure Diagrams.
After performing an XMI import, you may want to create Composite Structure Diagrams to show imported items and their relationships.
Through the Dictionary pane, you can see which Composite Structure Diagram items have been created in the Model. Through the Parts and Relationships panes, you can see how those Composite Structure Diagram items relate to each other through ownership, Dependencies, Associations and IO Flows.
* 
You can quickly find an item in the Parts or Relationships pane by right-clicking the item, pointing to Find, and then clicking In Parts pane or In Relationships pane.
Creating the composite structure diagram
Create a Composite Structure Diagram by right-clicking the appropriate Package, pointing to New, pointing to Diagram, and then clicking Composite Structure Diagram.
Dragging classes, top-level parts, top-level ports and actors to the composite structure diagram
After creating the diagram, drag the required imported Classes, Data Types, Interfaces, Signals, top-level Parts, top-level Ports and Actors from Modeler panes to the diagram. After adding the items to the diagram, use the populate commands to populate owned Parts and Ports, and missing links on the diagram.
Populating owned parts and ports
The Parts pane shows owned Parts and Ports: when you expand a Class, Data Type, Interface, Signal, Part or Port, the pane shows owned Parts and Ports.
On the Composite Structure Diagram, populate child Parts and Ports for Classes, Data Types, Interfaces, Signals, Parts and Ports: right-click the Class, Data Type, Interface, Signal, Part or Port, point to Populate, and then click Parts or Ports.
Populating missing dependencies
The Relationships pane shows which Classes, Data Types, Interfaces, Signals, Parts and Ports are related through Dependencies: when you expand these items, the Dependents and Depends On folders show items that are related through Dependencies.
On the Composite Structure Diagram, populate missing Dependencies for a Class, Data Type, Interface, Signal, Part or Port: right-click the item, point to Populate, and then click Dependents or Dependees.
Populating missing associations
The Relationships pane shows which Classes, Data Types, Interfaces, Signals, Parts, Ports and Actors are related through Associations: when you expand a Class, Data Type, Interface, Signal, Part, Port or Actor, the start or end Roles of Associations that are linked to the item are shown. The Full Name property of the Role indicates what item the Role links. Note that child Parts and Ports are linked through Associations.
On the Composite Structure Diagram, populate missing Associations for a Class, Data Type, Interface, Signal, Part, Port or Actor: right-click the item, point to Populate, and then click Associations.
Populating missing io flows
The Relationships pane shows which Classes, Data Types, Interfaces, Signals, Parts, Ports and Actors are related through IO Flows: when you expand a Class, Part, Port or Actor, the Sent IO Flows and Received IO Flows folders show items that are related through IO Flows.
On the Composite Structure Diagram, populate missing IO Flows for Associations: right-click an Association, point to Populate, and then click IO Flows.
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.