Skip to content
Philippe DUL edited this page Mar 2, 2023 · 13 revisions

Groovy for Capella

This addons allows to run Apache Groovy scripts on Capella. Create Capella elements, Export CSV, Extract diagram images...

Installation

You have to install Groovy-Eclipse and Capella-Groovy separately, both via Help->Install new Software, adding new update sites and using the site URLs below:

Capella 6.x

  1. Install Groovy-Eclipse from https://groovy.jfrog.io/artifactory/plugins-release-local/org/codehaus/groovy/groovy-eclipse-integration/4.8.0/e4.20/
  2. Install Capella-Groovy from https://download.eclipse.org/capella/addons/capella-tools/updates/nightly/v6.x/6.0.0.202302141150/

Capella 5.x

  1. Install Groovy-Eclipse from https://groovy.jfrog.io/ui/native/plugins-release/e4.16 - originally tested with 3.8.0
  2. Install Capella-Groovy from https://download.eclipse.org/capella/addons/capella-tools/updates/nightly/felix-v5.0.x/5.0.0.202106110807

Capella 1.4.1

  1. Install Groovy-Eclipse from https://groovy.jfrog.io/ui/native/plugins-release/e4.12
  2. Install Capella-Groovy from https://download.eclipse.org/capella/addons/capella-tools/updates/nightly/felix-v1.4.x/1.4.1.202005141321/

Start with scripts

  • Enable Development capabilities on Capella : Windows > Preferences > General > Capabilities > Development

  • You can then import the sample scripts using File > New > Groovy Example Project. (or go to capella.groovy.example folder)

  • Import and open In-Flight Entertainment System sample model, File > Import > Capella Example Project.

  • Run > Run Configurations... > Double click on Groovy for Capella > Script location > csv_grab.groovy.

  • This script will create a csv.txt inside the sample model.

Other Capella Tools (inactive)

Capella Resourceset Viewer

A resourceset viewer for Capella.

Capella Command Recorder

A command recorder tool for Capella.

Capella OCL Requestor

An OCL interpreter to build requests on Capella models.

Model2Ecore transformation

An ecore file generator based on Capella data packages.