ADM API with C#
Follow the steps below to install and set up Visual Studio so you can use the ADM API / OpenAPI in combination with C#.
You can find documentation on the ADM (Analysis Data Model) API here.
First download the (free) Community version of Visual Studio via following link: https://visualstudio.microsoft.com/vs/
Install Visual Studio with the .NET desktop development Workload and following Individual components:
![Installing Workloads](/sites/default/files/styles/embed_medium/public/images/2022-11/Installing-Workloads.png?itok=kRYaLnot)
![Installing Individual Components](/sites/default/files/styles/embed_medium/public/images/2022-11/Installing-Individual-Components.png?itok=RotralCS)
Then open Visual Studio and continue without code:
![Continue Without Code](/sites/default/files/styles/embed_medium/public/images/2022-11/Continue-Without-Code.png?itok=cBTpDESy)
Go to Extensions > Manage Extensions, search for SCIA to find the SCIA OpenAPI Project Template and install it:
![Extensions](/sites/default/files/styles/embed_medium/public/images/2022-11/Extensions.png?itok=aL_llRyM)
![SCIA OpenAPI Project Template](/sites/default/files/styles/embed_medium/public/images/2022-11/SCIA-OpenAPI-Project-Template.png?itok=AhsrdeXU)
You will get a message when the installation is succesfull:
![Install Complete](/sites/default/files/styles/embed_medium/public/images/2022-11/Install-Complete.png?itok=MQgvuVG0)
After relaunching Visual Studio you can create a new project:
![New Project](/sites/default/files/styles/embed_medium/public/images/2022-11/New-Project.png?itok=V5godgiA)
Search for the SCIA Engineer OpenAPI Project template, select the template and proceed:
![Project Template](/sites/default/files/styles/embed_medium/public/images/2022-11/Project-Template.png?itok=9FX1H2J-)
Next time that you create a new project, the SCIA Engineer OpenAPI Project template will be in the list of Recent project templates.
Set the version of SCIA Engineer that you would like to use:
![Configuration](/sites/default/files/styles/embed_medium/public/images/2022-11/Configuration.png?itok=zldqEgQx)
The new project is created. You can test if everything runs properly by running the script:
![Run](/sites/default/files/styles/embed_medium/public/images/2022-11/Run.png?itok=9DovyxAx)
Make sure to close SCIA Engineer and continue with Y:
![Continue](/sites/default/files/styles/embed_medium/public/images/2022-11/Continue.png?itok=OOiXECGC)
If SCIA Engineer starts properly, everything seems to be working fine and you can start writing your script.
Examples
The archive SciaEngineer.OpenApi.SEN22_0 contains a Visual Studio project with an example project using the ADM API:
For more info about ADM, see also: https://help.scia.net/webhelplatest/en/#special_applications/openapi/openapi.htm
The archive gvSEN3rdP contains a Visual Studio project with an example project using the 3rd Party SDK ADM API:
Via the link below you can find an example of the user_third_party_link.json file for SCIA Engineer 22.1:
For more info, see also: https://help.scia.net/webhelplatest/en/#data_transfer/third_party_sdk_adm/third_party_sdk_adm.htm