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 > Overview of generating C code (C code) > Overview of modeling C code (C code) > Setting up roles for generating C code (C code)
  
Setting up roles for generating C code (C code)
In addition to the standard Role properties in Modeler, you can apply the «C Role» stereotype to a Role, and then use its Tag Definitions to define C specific information.
1. If you have not done so already, add the C Profile package to your Model. How?
2. Set the standard properties of the Role as required.
3. Apply the «C Role» stereotype to the Role. For information about applying Stereotypes to an item, click here
4. Open the Role's Property Pages, and then click the C Role tab. For information about setting the tagged value of a Tag Definition, click here
5. If you want to specify array text for the Role, type the text as the tagged value of the C Array Spec tag definition.
6. If you want to specify a CV qualifier for the Role, set the tagged value of the C CV Qualifier tag definition as required.
7. If you want to specify indirection text for the Role, such as * or *const, type the text as the tagged value of the C Indirection tag definition.
8. If you want to specify a storage class keyword for the Role, set the tagged value of the C Storage Class tag definition to auto, register or extern.