Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Automatic Code Synchronizer(ACS) > Generating code files from a model > Generating code files (ACS)
  
Generating code files (ACS)
1. Add the ACS Profile to your model. How?
2. Ensure that the ACS/TDK Control toolbar is shown. How?
The ACS/TDK Control toolbar displays Not Connected.
3. Load ACS. How?
After ACS is loaded, the ACS/TDK Control toolbar displays Connected.
4. Set up the ACS generation and reverse options. How?
* 
Code is generated only when the Enable or Disable Code Generation toolbar button is depressed.
5. In Modeler, select the root item for the generation, that is, the Model or a Package.
6. On the ACS/TDK Control toolbar, from the drop-down list select the Generation Settings Scheme you want to use to generate code. The drop-down list lists any Generation Setting Schemes that have been created for the selected root item.
If you have not created any Generation Settings Schemes for the root item, create a new Generation Settings Scheme. How?
7. Click the Start toolbar button.
The ACS/TDK Control toolbar displays Loading Model, followed by either First Generation or Updating Code, followed by Ready.
8. If this is the first time you have used the Generation Settings Scheme to generate code, no code is generated at this point. To generate code the first time, you must force a generation:
a. Ensure that the ACS/TDK Control toolbar is displaying Ready.
b. On the ACS/TDK Control toolbar, click the Force Generate button.
c. From the confirmation dialog, click Yes.
ACS generates the code files to the target folder you specified in the Generation Settings Scheme.
After generating the code files, the ACS generation and reverse engineering options determine how the code files are updated while ACS is running and when ACS is started.