Publisher and Web Interface > Publisher > Developing document definitions > Working with model item types and model items > Specifying associated model item types and roles to include for extracted items and diagrams (Publisher)
  
Specifying associated model item types and roles to include for extracted items and diagrams (Publisher)
You can add child roles to a model item type, and add child types to a child role.
Important: When using a child role with no child types, you can only extract properties that are common to all the child types that can be extracted through that child role.
To add a child role to a model item type:
1. In the Document Structure pane, select the parent item.
2. Click the
Add Modeler Child Role Section button.
3. From the selection dialog, select the child role you want to add, and then click OK.
If you want to use a Private role or a custom role that is created through a reference Tag Definition, select the Private or Tag Definition check box as required.
4. Type the Title Text of the new child role, and then press the
Enter key.
5. If you want the child role to be repeated, set the Repeat Section property to Repeat Section.
6. If you want to ensure that no duplicate items or diagrams are extracted through the child role, set the Duplicates property to Don't Allow.
7. Set up other properties of the child role as required.
To add a child type to a child role:
1. In the Document Structure pane, select the child role item to which you want to add a child type.
2. Click the Add Modeler Child Type Section button.
3. From the selection dialog, select the child type you want to add, and then click OK.
If you want to use an extended model item type (Stereotype), select the Stereotype check box and ensure that you select a valid Stereotype for the child role. The listed Stereotypes are those Stereotypes that can be applied to the underlying items that are valid for the child role, which means that some or all of the Stereotypes may not be valid in the context of the child role.
4. Type the Title Text of the new child type, and then press the Enter key.
5. If you want to ensure that no duplicate items or diagrams are extracted through the child type, set the Duplicates property to Don't Allow.
6. Set up the other properties of the child type as required.
7. If you want to use item property values to filter the items that are extracted through the child type, including the option to ignore the type of the child type so that the filter settings apply to all items that are extracted through the parent child role, click here