The Filtering add-on provides the capacity to launch a derivation process from the command line.
Please visit the Capella Command Line documentation section in order to learn more about this aspect.
In addition to the Capella Command Line core mechanism parameters, Filtering Command Line provides the following:
Name | Category | Description |
---|---|---|
filteringresultid | mandatory | defines the id of the Filtering Result model element used for the derivation process |
derivationprojectname | optional | defines the derivation project name, if absent then the Filtering Result name will be used instead, in case of name conflicts the project name is incremented |
You can use the -help argument to see all of the applicable arguments for the Filtering Command Line.
For all the examples bellow we assume the existence of:
Using the Filtering Result name as the Project Derivation name
<CapellaInstallationPath>/capellac.exe -nosplash -application org.polarsys.capella.core.commandline.core -appid org.polarsys.capella.filtering.commandline -data <workspacePath> -input "derivationProject" -filteringresultid 4e535130-528c-49ff-b27e-69833f15f395
This command line will create a new derivation project in the workspace, based on the Filtering Result id that will have the same name as the Filtering Result (FilteringResult 1). If a project with this name already exists, then the derivation project name will be incremented (FilteringResult 1_2, FilteringResult 1_3, etc).
Specifying the Project Derivation name
<CapellaInstallationPath>/capellac.exe -nosplash -application org.polarsys.capella.core.commandline.core -appid org.polarsys.capella.filtering.commandline -data <workspacePath> -input "derivationProject" -filteringresultid 4e535130-528c-49ff-b27e-69833f15f395 -derivationprojectname "customProjectName"
This command line will create a new derivation project in the workspace, having as name the value specified in the -derivationprojectname argument (customProjectName). If a project with this name already exists, then the derivation project name will be incremented (customProjectName_2, customProjectName_3, etc).