Installation > Performing an Upgrade > Upgrading TDK Models
Upgrading TDK Models
Any customized ACS generators should be regenerated and rebuilt with Integrity Modeler 9.2 if they have not already been rebuilt with 8.0b or later.
If the TDK model is being upgraded from 7.3 or earlier, open the model and upgrade the TDK Framework. The TDK can then be launched from the ACS/TDK Control tab. Choose a clean target directory to build a new generator DLL for use with ACS.
When upgrading from 7.2 or earlier, other manual changes may also be needed:
for C
1. In the sdl, replace all instances of MakeTypeDef with MakeTypedef.
2. For TheGenerator::Generator::Model2Text::GeneratorRoot, clear the EndText and EndExecOrderClass tags on the GenClass property tab.
3. Comment out TheGenerator::TDK Generator Framework::Reversers::TGuardTag.PostInstanceText value.
4. Add a class called TheGenerator::Generator::Reversers::TCGuardTag. This class should be:
a. a subclass of TheGenerator::TDK Generator Framework::Reversers::TGuardTag and
b. stereotyped as GenClass with the following non-default tag values: ExplicitAllocator=TRUE, ExplicitInstance=CGuardTag, PostInstanceText=%tagdef CGuardTag
5. Copy TheGenerator::Generator::Reversers::TCActionTag.GetModelValue to TheGenerator::Generator::Reversers::TCGuardTag.
for C++
1. Add a Refine function to TheGenerator::Generator::Model2Model::SMG::ZCSMGEnum.
Set the function body to:
Self.DefaultRefine()
Self->"Dependency Start" = %null
2. Comment out TheGenerator::TDK Generator
Framework::Reversers::TGuardTag.PostInstanceText value.
3. Add a class called TheGenerator::Generator::Reversers::TCppGuardTag. This class should be:
a. a subclass of TheGenerator::TDK Generator Framework::Reversers::TGuardTag
b. stereotyped as GenClass with the following non-default tag values: ExplicitAllocator=TRUE, ExplicitInstance=CppGuardTag, PostInstanceText=%tagdef CppGuardTag
4. Copy TheGenerator::Generator::Reversers::TCppActionTag.GetModelValue to TheGenerator::Generator::Reversers::TCppGuardTag.
You may use the Synchronizer Scheme Importer for migrating customized OCS generators to ACS/TDK.