Connect Edition update 3 + openstaad API + .NET C#

Hi ,

i trying to develop custom tool using openstaad + c#. 

i want know what is reference .dll name and where its located in staad installed path.(specially connect edition)

your sample Excel macro is working fine in my system. in this new version i not able find openstaadUI reference .dll. 

i want known whether openstadd is separate installation and need separate license to develop custom Tool?  if not can you guide us how find reference .dll.

Parents Reply

  • Adding StaadPro.dll will not help in C# application. You need to add the interop dll.

    Please create the dll by following steps:

    1. Open up command prompt.

    2. Go to C: or D: or any folder other than ‘Program files’ or system folders

    3. Now, type "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\TlbImp.exe" " C:\Program Files\Bentley\Engineering\STAAD.Pro CONNECT Edition\STAAD\StaadPro.dll" /out:Interop.StaadPro.dll

    The output DLL will be found in the folder where your command prompt is pointing.

    Now, add this dll to your C# project and you can access the OpenStaad application object.