OS. Initiate OpenSTAAD in C#
Note: You must have a model open in STAAD.Pro for this
example. Otherwise your code will return an error.
using System;
using System.Runtime.InteropServices;
namespace OSEOMConsoleApp
{
class Program
{
static void Main (string[] args)
{
OpenSTAADUI.OpenSTAAD os = Marshal.GetActiveObject("StaadPro.OpenSTAAD") as OpenSTAADUI.OpenSTAAD;
}
}
}