Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > Modeling IDL code in Modeler > Working with file names, include directives and the order of child items > Generating child items in a specific order (IDL code)
  
Generating child items in a specific order (IDL code)
When an item has child items, you may be able to order those child items so that they are generated in a specific order. For example, you can generate a Component's Attributes in a specific order. When appropriate:
You can specify members to generate first and the order those members should be generated.
You can specify the order in which other members are generated within their context, for example, the order in which Attributes are generated.
To specify which members are generated first (does not apply to an operation's members):
1. Open the Property Pages of the Model or IDL item for which you want to specify which members are generated first. An IDL item must be based on a UML Package, Class, Data Type, Interface or Signal
2. Click the Items tab.
3. In the Show Associated list, select Priority Generation Items.
4. Select the items to generate first:
a. Click the Link button.
b. In the left pane, select the appropriate folder, Package or item to display the items you want to order in the middle pane.
c. In the middle or right pane, select the check boxes associated with the items you want to order.
d. In the middle or right pane, clear the check boxes associated with the items you want to un-apply.
e. Click OK.
5. On the Items tab, for each item you want to move to a different position:
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
When generating the Model, Package, Class, Data Type, Interface or Signal, ACS will generate the items you ordered first in the order you specified, and then generate any other members.
To specify the order in which other members are generated:
1. Open the parent item's Property Pages.
2. Click the Items tab.
3. In the Show Associated list, select the entry for the child items you want to order. Note:
Attributes orders child Attributes.
Operations orders child Operations.
Type Definitions orders child Type Definitions.
Nested Classes orders child Classes, Data Types, Interfaces and Signals.
All Package Items (for a Package only) orders child items other than Attributes and Operations.
If the buttons for changing the order of the listed items are not available when you select an item in the list, you cannot specify the order.
4. For each item you want to move to a different position.
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
* 
Changing the order of items on the Items tab does not affect the order in which the items are displayed on the Packages pane.