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 > Creating a generation settings scheme (ACS)
  
Creating a generation settings scheme (ACS)
1. In Modeler, open the model you want ACS to work with.
2. If you have not added the ACS Profile to the model, add the ACS Profile to that model. How?
The ACS/TDK Control toolbar displays Not Connected.
3. Ensure that the ACS/TDK Control toolbar is shown. How?
4. Load ACS. How?
After ACS is loaded, the ACS/TDK Control toolbar displays Connected.
5. In Modeler, select the Model or Package that is to be the root object for the Generation Settings Scheme.
* 
Using a Package as a root object, rather than the complete model, will result in a better performance from ACS.
6. On the ACS/TDK Control toolbar, in the drop-down list select New Scheme.
7. On the ACS/TDK Control toolbar, click the Edit ACS Scheme button.
Modeler opens the Launch ACS/TDK dialog.
8. Click the button associated with the Generator Dll box, and select the ACS Code Generator DLL you want to use.
If you have installed Modeler to the default location, the supplied Code Generator DLLs reside in subfolders of the following folder (the name of a Code Generator DLL's folder matches that of the Code Generator DLL).
For Windows 7 and later operating systems:
C:\Users\<user>\AppData\Roaming\ItsShadow\ScriptDir
For pre Windows 7 operating systems (64-bit versions of):
C:\Program Files (x86)\PTC Integrity Modeler\Modeler\System
For pre Windows 7 operating systems (32-bit versions of):
C:\Program Files\PTC Integrity Modeler\Modeler\System
For information about customizing an ACS Code Generator DLL, see the Transformation Development Kit (TDK) help.
9. Click the button associated with the Target Directory box, and select the folder to which you want to generate code.
Alternatively, you can type the path of the folder in the Target Directory box.
10. The Launch Options box allows you to specify configuration parameters that are used when starting ACS.
Configuration Parameters can control standard features of ACS, such as, whether the generation is enabled or not. Some Configuration Parameters provide features that are not available through the ACS/TDK Control toolbar, such as, prefixing log entries with the date and time, and forcing ACS to preserve text within markers in code files.
Configuration Parameters can be applied through shared Configuration Parameter Files. For more information about Configuration Parameters, see Overview of configuration parameters (ACS)
11. Click the button associated with the Settings File box, specify a name and location in which to save the Generation Settings Scheme, and then click Open.
12. Click the Advanced tab.
* 
The options available on the Advanced tab are populated only after you have selected a Code Generator DLL.
13. Set the options on the Advance tab as required.
The options available on the Advanced tab depend on the code language you are generating. For more information about the options, see Launch ACS/TDK dialog (ACS).
14. If there is a Simulation tab (appears for animation and simulation Code Generator DLLs only), click the Simulation tab:
a. Click the button associated with the Select Classes to Stub pane.
b. For each Class you want to generate as a stub, select the Class and then click Add.
c. After you have added all the Classes you want to generate as stubs, click Close.
d. If shown, in the Select Harness Pane browser, select the initial state machine Class.
15. Click Save Only, and then click Cancel.
* 
Clicking the Save and Launch button saves the Generation Settings Scheme and starts ACS using that Generation Settings Scheme.
The Generation Settings Scheme you created will be available in the ACS/TDK Control toolbar whenever the root object is selected in Modeler.
After creating a Generation Settings Scheme, you can set up the ACS generation and reverse engineering options before generating any code files. How?