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.
Hi Chinna, Vivek and all,
I have revised the sample application project (please find attached). The main important think beside the interop dll is the manifest file. You need to include the manifest file in the project so that the application can find the object.
You can deliver the manifest file with the application or embed it in the application (as in the sample).
@Vivek, the previous sample worked for you because you had the SS6 installed on your machine which registers the TLB file to the system. With the current version we are not writing anything to the registry (due to all security reasons of the OS). So, you will need the manifest file to access STAAD object.
I hope this sample will help you in developing your application.
If you have any other queries, you are welcome to post. We will be glad to help you out.
Senior Principal Software Engineer, Structural
I have Implemented DLL file in my Project and i've added app.manifest file and Copied comInterfaceExternalProxyStub part in end and Recompiled Whole Project. Anything Else i need to Do? File Property for App.manifest file?
This is sample vb.net project, Can you check if my implementation of app.manifest file is correct, i don't want to remove my older version of staad to check it.
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.
follow chinna reply in below comment
Thanks a lot..
Vivek is it possible to tell how to create the manifest file .
Alex Immanuel Thainese
I have try this , it is no use, and it can't work