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.4.0) of the Art Exporter.

Note: This version of the Art Exporter requires a pre-release of Model RealTime 12.1.7. It can not be installed in Model RealTime 12.1.6. Contact Support to get the pre-release of Model RealTime 12.1.7.

  1. 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. The Export Model to Art dialog opens.
    Export Model to Art
    Set the options as required:

    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 only. Structure and class diagrams for C++ types are not yet supported. It is not possible to export diagrams from the command line.

  3. Click Next to open the Art Exporter Options page.
    Subfolder Options
    Under Subfolders for generated files, configure the following:

    Note: If a subdirectory is already defined in the Code Generation tab of Transformation Configuration (.tcjs), that setting takes precedence over these values.

  4. 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