This repository contains a collection of Groovy scripts for a variety of purposes. They all use the Published Automation Interface (PAI) of DaVinci Configurator 5.
ID | Name | Task | Type | Description | Requirements | Received |
---|---|---|---|---|---|---|
001 | FileChooser | FileChooserTask | DV_APPLICATION | opens a dialog to load an .xls file, copies it in an Excel Workbook and then opens a dialog to choose the path where to save it. | KnowledgeBase ID: KB0012432 |
|
002 | CSP_Project_API | ReadTheActiveEcuCTask | DV_PROJECT | reads container and parameter with the BswmdModel from a loaded project. | KnowledgeBase ID: KB0012355 |
|
WriteTheActiveEcuCTask | DV_PROJECT | writes EcuCores with different methods in a loaded project. | ||||
003 | CSP_Application_API | CreateNewProject | DV_APPLICATION | creates a new project and activates Det, Dio and EcuC modules. | KnowledgeBase ID: KB0012354 |
|
CreateAndUpdateProjectTask | DV_APPLICATION | creates a new project and updates it with a communication extract. | ||||
004 | CSP_Workflow_API | UpdateExistingProject | ON_SUCCESSFULL_WORKFLOW_UPDATE | will be executed after a successful update and then just prints update successful in the console output. | KnowledgeBase ID: KB0012359 |
|
TestUpdateSettings | APPLICATION | starts an update and enables the possibility to modify the SystemExtract. Then executes a python script and disables the possibility afterwards. | ||||
ArPackageNames | DV_ON_FILE_PREPROCESSING_RESULT | will be executed after the filepreprocesing and therefore it is using the ScriptTaskType DV_ON_FILEPREPROCESSING_RESULT. It reads the ARPackages from the MDFModel and prints the ASRPath in the console output. | ||||
005 | CSP_GenerationStep_API | GenStepTas_Step | DV_GENERATION_STEP | will be executed during generation as a generation step and then creates a new validationResult. | KnowledgeBase ID: KB0012358 |
|
GenEndTask_End | DV_ON_GENERATION_END | will be automatically executed at the end of the generation process and just prints the result of the generation and the executed generators in the console output. | ||||
006 | CSP_UI_API | SimpleApplTask | DV_EDITOR_SELECTION | both just print some text in the console output but it differs depending on the selected element(s). | KnowledgeBase ID: KB0012356 |
|
SimpleApplTask_Multi | DV_EDITOR_MULTI_SELECTION | |||||
007 | CSP_Validation_API | CheckValidationResults_filterByOriginId | DV_PROJECT | example for the ScriptTaskType Validation API. This project contains various tasks regarding the IValidation API. It gives an overview how to get the validation results, how to filter them and how to use the ISolver API. There are examples which show the usage of solvingActions and how to create your own validationResult. | KnowledgeBase ID: KB0012357 |
|
SolveResultSolvingAction | DV_PROJECT | |||||
SolveMultipleResults | DV_PROJECT | |||||
SolveAllWithPreferred | DV_PROJECT | |||||
FilterResultsUsingAnIdConstant2 | DV_PROJECT | |||||
SolveMultipleResultsByGroupId | DV_PROJECT | |||||
IValidationResultUIApiOverview | DV_PROJECT | |||||
SolvingReturnValue | DV_PROJECT | |||||
ScriptTaskCreationResult | DV_GENERATION_STEP | |||||
008 | CreateApplicationDataTypeFromExcelList | CreateApplicationDataTypeFromExcelList | DV_ON_FILE_PREPROCESSING_RESULT | creates Application Primitive Datatypes based on an Excel file. | KnowledgeBase ID: KB0012238 |
|
009 | ExamplePostImport | UpdateExistingProject | DV_ON_SUCCESSFUL_UPDATE_WORKFLOW | changes the value of the parameter DemEventCreateInfoPort in all occurrences in DemEventParametern after a successful update was executed. This task type will be executed automatically, but only if the update was successful. | KnowledgeBase ID: KB0012361 |
This project is licensed under the MIT LICENSE.