- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am student and I am working on a project with a company. I came to a dead end and I need help with VBA.
Basically what I am doing is I have the model ready and done all calculations by the regular GUI. I want to extract the results and calculations such as the displacement, node locations and stiffnesses of springs onto the excel sheet for manipulation and interpretation. Further I need to enter the data into another geotechnical software based on the coordinates. I have the excel macros setup and these macros are previously tested so the syntax is correct.
The issue is arising when I run the macro to pick data and enter into excel. Robot is open when I use the macros and the Object model (robotom.tlb), Kernel(Kernelom.tlb) reference are already added to excel, SDK is installed as well. I get the attached run-time error when using VBA. I have also attached the command which shows error when running.
The explicit error I am getting is 'Method Project of object 'IRobotApplication' failed'. Not fully sure but the object file should connect to excel and pick up data.
Further there are two instances of files for the Object model (robotom.tlb), one is with the exe directory and one is within the SDK directory, can these conflict with one another? Although I have only added the Object model file of exe as reference in VBA excel.
I get the same error when using the tutorial macros available in SDK files for version 2022. The references added in excel are for version 2022, which is the same version I have the model open. Although version 2023 is also installed onto the same system.
When running Robot, I have no errors during the calculation. Further, the installation of the software seems fine as well. Please help me!
Solved! Go to Solution.