You can create an Association through a Class Diagram or Composite Structure Diagram. Use a Composite Structure Diagram to create an Association that involves Parts or Ports.
The source item can be an Actor, Class, Data Type, Interface, Signal, Part or Port.
3. On the diagram, click the destination item.
The destination item can be an Actor, Class, Data Type, Interface, Signal, Part or Port.
To create an association and ports in one operation:
1. On a Composite Structure Diagram , ensure that the items you want to connect are shown.
2. On the Structure Diagram toolbar, click the Complete Association button.
3. Click the source Class, Part or Port.
4. Click the destination Class, Part or Port.
5. If the Select Object dialog is displayed, create or select the type of the Ports that will be created, or click Untyped to create untyped Ports, and then click OK.
Note that if you create a complete association between a Port and a Class or Part, the new Port will use the same type as the connected Port.