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.
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.
SampleOSApp.Rev1.zip
Regards
Rudra Lahiri
Senior Principal Software Engineer, Structural
Now its working fine rudra.. Thanks for your efforts.. really this is helpful for my further development
Thanks Chinna, Vivek. Glad to know that it is working, I will try to put this in a document and add to the STAAD help so that you do not face any issues.
i am getting this warning. I don't Want to Set x64 Platform.is It ok if i ignore this?Warning: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "openstaadui_X64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
Hi Vivek, it is better to match the platform. however, 'any cpu' will work provided you do not plan to deploy the application on 32 bit machine. I am not sure about your use case or deployment, so I think you should test this out in different scenarios.
The reason i am using any cpu as platform is i am developing Excel Addin and i don't know if all of my clients have 64 bit version of Excel, with any cpu it will work on all Excel version just OpenStaad Part May Nor Work.