Specify Evaluated Variant Set

  1. Open VS Code and use Open Folder to select the folder containing your input files. This helps keep all files organized in one place. The folder itself does not affect how the input files are processed.

  2. To create a Json-based variant definition file, go to File  New File and select New DaVinci-AUTOSAR-JSON File or right-click in the Explorer and choose New DaVinci-AUTOSAR-JSON File from the context menu. Select evaluated-variant-set from the context menu to define variants.

  3. Choose either the detailed or compact variant file template to begin designing.

    • Both templates support evaluated variant sets and allow specifying a variant name or path.

    • The detailed template additionally supports criterion definitions from the start.

  4. The variant definition file will be created in your folder as compact or detailed .evs.json and will appear in the Explorer.

This file is automatically associated with the appropriate JSON schema, enabling editing with autocomplition and validation.

To preview the ARXML content of the JSON file, click on ARXML Preview in the file’s title menu.