Creating a part
You can create a Part on a type or on another Part:
When you create a Part on a type (Class, Data Type, Interface or Signal), that Part is available to any Part or Port that uses that Class, Data Type, Interface or Signal as its type.
When you create a Part on a Part, that Part is created in context of its container items.
You can create a Part as an Attribute or Role. However, untyped Parts can be created only as Attributes.
To create a part (as a role) on a type:
1. On a Composite Structure Diagram , add the type (Class, Data Type, Interface or Signal) on which you are going to create a Part.
2. On the Structure Diagram tab, click the Part button.
3. Click within the Class, Data Type, Interface or Signal on which you want to create the Part.
4. From the Select Object dialog, select the item you want to use as the Part's type, and then click OK or Click the appropriate button to create a new type for the Part or an untyped Part.
5. Type the name of the Part, and then press the Enter key.
Alternatively,
1. On a Composite Structure Diagram, add the type (Class, Data Type, Interface or Signal) on which you are going to create a Part.
2. In a Modeler pane, locate the item you want to use as the Part's type.
3. Drag the item you want to use as the Part's type from the Modeler pane to the type on the Composite Structure Diagram.
4. Select the Part that is created on the diagram, and through its Property Pages set the name of the Part.
Alternatively,
1. On a Class Diagram, add the item on which you want to create the Part.
2. On the same diagram, add the item that you want to use as the Part's type.
3. On the Class Diagram tab, click the Composite Aggregation button.
4. Click the item on which you are creating the Part, and then click the item that you want to use as the Part's type.
Type the name of the composite aggregation, and then press the Enter key.
5. Open the aggregation's Property Pages.
6. Click the End Role tab, and then click the Properties button.
7. Click the Genera l tab, and then if required type a Name for the Part (Role).
8. Click the Options tab, and then set the properties as required.
To create a part (as an attribute) on a type:
1. On a Class Diagram , add the item on which you want to create the Part.
2. On the Class Diagram tab, click the Attribute button.
3. Click the item on which you are creating the Part.
4. Type the name of the Part, and then press the Enter key.
5. Open the Attribute's property pages.
6. Click the Data Type tab.
7. Click the Select button, and then select the item you want to use as the Part's type.
Alternatively,
1. In a Modeler pane, locate the item on which you want to create a Part.
2. Right-click the item, and select New > Attribute.
3. Type the name of the Part, and then press the Enter key.
4. Open the Attribute's property pages.
5. Click the Data Type tab.
6. Click the Select button, and select the item that you want to use as the Part's type.
To create a part on a part:
1. On a Composite Structure Diagram , ensure that the Part on which you want to create a new Part is shown.
2. On the Structure Diagram tab, click the Part button.
3. Click within the Part on which you want to create a Part.
Note that you cannot click within a Part or Port that uses a Basic Type or Type Definition as its type.
4. From the Select Object dialog, select the item you want to use as the Part's type, and then click OK
or Click the appropriate button to create a new type for the Part or an untyped Part.
5. Type the name of the Part, and then press the Enter key.
The Part is created in the context of its container items. The Part is created as a Role, unless you created an untyped Part, in which case it is created as an Attribute.
Alternatively,
1. On a Composite Structure Diagram , ensure that the Part on which you want to create a new Part is shown.
2. In a Modeler pane, locate the item you want to use as the new Part's type.
3. Drag the item you want to use as the Part's type from the Modeler pane to the Part on the Composite Structure Diagram.
4. Select the new Part that is created on the diagram, and through its Property Pages set the name of the Part.