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) > Customizing an ACS Code Generator DLL > Customizing a TDK code generation transformation patterns model - current TDK models > Changing code generation definition in a TDK code generation transformation patterns model > Creating GenClass classes to reverse engineer tagged text in a TDK code generation transformation patterns model
  
Creating GenClass classes to reverse engineer tagged text in a TDK code generation transformation patterns model
* 
Do not change the provided GenClass classes - if you do so, your changes will be lost should you update the TDK Code Generation Transformation Patterns model with improvements provided in a future release of Modeler.
To create GenClass classes to reverse engineer tagged text:
1. Create a new Package in the TDK model that is not scoped to the Generator or TDK Generator Framework packages.
2. In the Package you created, create a Class Diagram to show your GenClass and GenClass extension classes.
3. Add the following Class to the Class Diagram you created.
TDK Generator Framework::Reversers::TBaseRTFTag
4. In Package you created, create a clone of a GenClass class from the Generator::Reversers package - you can do this by holding down the Ctrl key while dragging the GenClass to the Package you created.
5. Change the properties of the cloned Class in the Package you created as follows:
a. Change the name of the Class to something appropriate.
b. Change the Default Value of each of the Class Attributes as required and Hd specifies the tagged text start identifier followed by Ft specifies the tagged text end identifier. RevPropName specifies the Property name from which the tagged text is generated and PropName specifies the Property name from which the tagged text is generated.
c. Open the Class Property Pages, and then click the GenClass tab.
d. Set the tagged value of the ExplicitInstance tag definition to a suitable name.
e. Set the tagged value of the PostInstanceText tag definition to %tagdef followed by the tagged value set for the ExplicitInstance tag definition.
6. Drag the Class from the Package you created to the Class Diagram you created.
7. On the Class Diagram toolbar, click the Generalization button, click the TBaseRTFTag class, and then click the Class you created.