install Scia Engineer (32/64bit)
install python 3.7
install python.net https://github.com/pythonnet/pythonnet/wiki/Installation
preffered way
alternatives (sometimes tricky)
reference the Scia.OpenAPI.dll
clr.AddReference(r"C:\Program Files (x86)\SCIA\Engineer19.0\Scia.OpenAPI.dll")
import SCIA.OpenAPI classes
from SCIA.OpenAPI import *;
from SCIA.OpenAPI.StructureModelDefinition import *;
from SCIA.OpenAPI.Results import *;
from Results64Enums import *;
Finalize your script using the dispose (Environment.Dispose() method call)
if you get following exception, just register esa libraries
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.