Art Exporter

The Art Exporter is a utility for exporting (parts of) your models to Art files. Those Art files can then be used with Code RealTime.



Installation

  1. Download the latest version (2.2.0) of the Art Exporter.

  2. Make sure you are using the latest version of Model RealTime before running the Art Exporter and then perform Help - Install New Software.

Note: Before installing, you must disable the build server. Clear the Launch build server at start-up checkbox in Window -> Preferences -> RealTime Development -> Build/Transformations and restart Eclipse. After the installation is complete, re-enable the build server and restart Eclipse again.

  1. Press the Add button and give a unique name to the P2 repository (e.g. ArtExporter_<today's date>). Then press the Archive button and browse to the location where you saved the Art Exporter ZIP file. Press the OK button.

  2. Mark all checkboxes and press Next.

  3. Accept the license agreement and press Next.

  4. Press Finish to start the installation. Once it is completed you will be prompted to restart Model RealTime. Do so.

Export Model Options

Export Model from UI

  1. Start the Art Exporter from File - Export. Under the Modeling category, select Art Files for Code RealTime and press Next.
    Export Wizard

  2. Specify a TC file from the workspace under Source. This file, and all its source elements, will be exported to an Art file.

  3. Under Destination select either a workspace project or a file system directory. Exported Art files are placed in subfolders by project association.

  4. When exporting models, you can enable the Export Diagrams checkbox. If selected, the Art Exporter will create JSON files containing layout information and place them in a layouts folder. These layout files help ensure diagram symbol position and size in Code RealTime closely match their appearance in Model RealTime.

    Limitations: line bendpoints are currently not supported by Code RealTime, so diagrams may not be 100% identical. Manual layout export is available for state diagrams currently. Structure and class diagrams for C++ types are not yet supported. Also, it's not possible to export diagrams from the command line.

  5. Click Finish to complete the export.

Export Model from Command Line

  1. Locate the modelcompiler.jar file in the tools directory.
  2. Run the model compiler from the command line. Refer to the Model Compiler documentation to invoke the model compiler from the command line.
    java -DRSA_RT_HOME=<path_to_rsa_rt_home> -jar modelcompiler.jar --root=<path_to_model_root> --out=<output_directory> --<license_type>=<value>--exportArt <path_to_transformation_config_file.tcjs>
    where:
    Note: Replace the placeholders with the correct paths and license key.

    After executing the model compiler, navigate to the output directory specified in the --out parameter and verify the generated files.

Using Exported Files in Code RealTime

To use the exported Art files, add them as workspace folders in the latest version of Code RealTime.

Note that you can create additional Art files and TC files as required in these workspace folders in Code RealTime. Just make sure to give them names that won't clash with the names of generated Art files. Thereby you can re-export the source models if you have changed them in Model RealTime, or want to export them with some different settings.

In the example below, three Art files (in two workspace folders) have been exported. The other Art file (Top.art) and the TC file (app.tcjs) have been manually created in Code RealTime.

Refer to the following video to learn about Art Exporter:

Release Notes and Versions

See here: Art Exporter release notes and versions