Old transformation configurations and the model compiler

Starting with Model RealTime 10.3, the support for transformation configurations (TCs) in the old XML format (.tc) was removed and replaced with support for a new JavaScript format (.tcjs). Because of this, some legacy features have been removed and replaced with better alternatives:

Deprecated features that were removed in 10.3

Even though the model compiler has many benefits over the old C++ code generator, it doesn't support everything which the old code generator did. The following are not supported:

Likewise, the switch to a new TC format has removed some old features:

Converting TCs from the old to the new format

To convert an old .tc file to a new .tcjs file, follow these steps:

  1. Make sure the old .tc files are visible in the Project Explorer by invoking the Filters and Customization command in the view menu. In the Pre-set filters tab, make sure Legacy Transformation Configuration Files is unmarked.
  2. Right-click on the .tc file that you want to convert and perform the command Convert to JavaScript. The TC and all its prerequisite TCs will then be converted to the new JavaScript-based file format (.tcjs).

It is recommended to start the conversion on each top-level TC, and test that it can be built, before proceeding with the next top-level TC.

By default a converted .tcjs file is placed next to the original .tc file. However, if that location is read-only the new file will instead be placed next to the top-level .tc file.

It should be noted that even if you cannot create new TCs in the old format anymore, you can still build existing TCs in the old format with the model compiler. Hence, you don’t necessarily need to migrate all existing TCs to the new format before you can build your application with the model compiler. However, TCs that remain in the old format need to be edited using Model RealTime 10.2.

Notes on adopting the model compiler

The classic builder is no longer part of Model RealTime, but the build user interface is the same as before. Therefore, most scenarios work the same with the model compiler as with the old C++ code generator. However, there are a few things you should be aware of:

Your biggest effort with adopting the model compiler will likely be to update all build scripts you may have for doing batch builds. Refer to the document Model Compiler for detailed information about how to invoke the model compiler from the command line or from scripts.