Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Transformation Development Kit (TDK) > TDK models > TDK model types (TDK)
  
TDK model types (TDK)
There are three types of TDK models:
TDK Code Generation Transformation Patterns models
TDK 3G models
TDK Legacy models
TDK Code Generation Transformation Patterns models
A TDK Code Generation Transformation Patterns model is the next generation of TDK model and it contains Classes that contain and rules and Operations that model how the ACS Code Generator DLL generates code.
The provided Ada, C, C#, C++, IDL, Java, SQL and VB TDK models make use of TDK Code Generation Transformation Patterns. In addition, some of these models also make use of TDK 3G modeling techniques.
To generate an ACS Code Generator DLL from a TDK Code Generation Transformation Patterns model, you use the 4GGenMetaGen Code Generator DLL, which you can load on the ACS/TDK dialog through the button.
For more information about TDK Code Generation Transformation Patterns models, see Overview of customizing ACS Code Generator DLLs - TDK code generation transformation patterns model (TDK).
TDK 3G models
A TDK 3G model contains a set of SDL generation templates. Each generation template is stored in the Body property of an Operation that has been stereotyped by the GenModule stereotype. These Operations are scoped to Classes in the Model2Text package.
TDK 3G models are not provided in Modeler, but they were used for generating the ACS Code Generator DLLs in early versions of Modeler.
If more than one ACS Code Generator DLL can be generated from a TDK 3G model, you must configure the TDK model for the ACS Code Generator DLL you want to generate - you do this in Modeler by right-clicking the model, and then clicking the appropriate Build Settings command:
To create a new ACS Code Generator DLL that overwrites a provided ACS Code Generator DLL:
Right-click the TheGenerator package, point to Build Settings, and then click the command for the ACS Code Generator DLL you want to overwrite.
To create a new ACS Code Generator DLL that does not overwrite a provided ACS Code Generator DLL:
Right-click the TheGenerator package, point to Build Settings, and then click the command for the ACS Code Generator DLL type you want to generate. After setting up the TDK model for the ACS Code Generator DLL type you want to generate, right-click the TheGenerator package, point to Build Settings, and then click Custom Generator so that the name of the generated ACS Code Generator DLL is based on the name of the model.
To generate an ACS Code Generator DLL from a TDK 3G model, you use the 4GGenMetaGen Code Generator DLL, which you can load on the ACS/TDK dialog through the button.
For more information about TDK 3G models, click here Overview of customizing ACS Code Generator DLLs - TDK 3G model (TDK).
TDK Legacy models
TDK Legacy models were used in Studio version 6.2 and earlier. TDK Legacy models are no longer provided with Modeler.
Previously, there was one TDK Legacy model for each ACS Code Generator DLL. A TDK Legacy model contains a set of SDL generation templates. Each generation template is stored in the Body property of an Operation that has been stereotyped by the GenModule stereotype. These Operations are scoped to a Package named TheGenerator.
To generate an ACS Code Generator DLL from a TDK Legacy model, you use the ShdMeta2g Code Generator DLL, which you can load on the ACS/TDK dialog through the button.
For more information about TDK Legacy models, click here Overview of customizing ACS Code Generator DLLs - TDK Legacy model (TDK).