Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Generating C++ code > Generating C++ code > Modeling C++ code in Modeler > Generating an item's child items in a specific order (C++ code)
  
Generating an item's child items in a specific order (C++ code)
This topic applies to the child items (members) of a Model, Package, Class, Data Type, Interface, Signal or Operation:
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, Package, Class, Data Type, Interface or Signal for which you want to specify which members are generated first.
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 Property Pages of the Model, Package, Class, Data Type, Interface, Signal or Operation.
2. Click the Items tab.
3. In the Show Associated list, select the required entry.
* 
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.
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 in the Packages pane.