<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f) in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194241#M5390</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to comment the marked section and run your code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanich_0-1692889727155.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257668i3E7ED03BE734F7C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanich_0-1692889727155.png" alt="Romanich_0-1692889727155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 15:08:59 GMT</pubDate>
    <dc:creator>Romanich</dc:creator>
    <dc:date>2023-08-24T15:08:59Z</dc:date>
    <item>
      <title>API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193363#M5384</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running Robot, I have no errors during the calculation. Further, the installation of the software seems fine as well. Please help me!&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 09:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193363#M5384</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-24T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193701#M5385</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First go to VBA editor and select &amp;lt;Tools&amp;gt; &amp;lt;Preferences&amp;gt; and search for "Robot Object Model ver. 23.0".&lt;/P&gt;&lt;P&gt;It is important that robot and a project are open&lt;BR /&gt;Then restart your scripts&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim RobApp As RobotApplication
Set RobApp = New RobotApplication
NotReady = Not (RobApp.Visible = -1 And RobApp.Project.IsActive = -1)
If NotReady Then
  Set RobApp = Nothing: Exit Sub
End If&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:40:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193701#M5385</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-08-24T15:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193877#M5386</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The version I have opened and made the model on is 2022, so I have used 'Robot Object Model ver. 22.0'.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;In the VBA editor&amp;nbsp;&amp;lt;Tools&amp;gt; &amp;lt;Preferences&amp;gt; and search for "Robot Object Model ver. 23.0" doesn't show, only I can see the Kernal file for ver. 23.0. Shouldn't the software version match with the version of object and kernel?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Further, I tested the SDK example again. When keeping robot exe closed, I ran the Tower Generation example taken from SDK , and the macro worked when using Excel VBA with 2022 version of software and Object files as references. I get the error mentioned previously when I have the Robot model open, using the visible command and then it gives run-time error when I access the data for calculations-node points to be transferred&amp;nbsp;into excel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 12:57:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193877#M5386</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-24T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193896#M5387</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The version I have opened and made the model on is 2022, so I have used 'Robot Object Model ver. 22.0'.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;In the VBA editor&amp;nbsp;&amp;lt;Tools&amp;gt; &amp;lt;Preferences&amp;gt; and search for "Robot Object Model ver. 23.0" doesn't show, only I can see the Kernal file for ver. 23.0. Shouldn't the software version match with the version of object and kernel?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Further, I tested the SDK example again. When keeping robot exe closed, I ran the Tower Generation example taken from SDK , and the macro worked when using Excel VBA with 2022 version of software and Object files as references. I get the error mentioned previously when I have the Robot model open, using the visible command and then it gives run-time error when I access the data for calculations-node points to be transferred&amp;nbsp;into excel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:03:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12193896#M5387</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-24T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194103#M5388</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the 2022 license is active, ok, that is enough. Leave the kernel unchecked it will not be useful&lt;/P&gt;&lt;P&gt;if RobotOM is loaded and Robot is open with an open project, there is no reason for your program (Code Snippet) to stop.&lt;/P&gt;&lt;P&gt;The Tower_generation.xls program starts by launching Robot if it is not open. It's a different code than yours so I'm not surprised to see it working even if "Code Snippet" stops.&lt;/P&gt;&lt;P&gt;To go further, I need the lines of your code up to the one that caused the error. Don't forget to mention it and provide a snapshot like you did. If a project related to your code is open you can attach it too.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:16:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194103#M5388</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-08-24T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194203#M5389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a screenshot of the code, the yellow mark is where the code doesn't run and the error is shown. Globally the arrays and objects are declared as Public (also included a snippet of this code in my first message).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also attached the ROBOT modelled on 2022 version as a snippet as well. This is always open when I run the code, the analysis runs without any errors.&amp;nbsp; The email box would not allow me to upload .rtd files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:54:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194203#M5389</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-24T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194241#M5390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to comment the marked section and run your code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanich_0-1692889727155.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257668i3E7ED03BE734F7C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanich_0-1692889727155.png" alt="Romanich_0-1692889727155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:08:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194241#M5390</guid>
      <dc:creator>Romanich</dc:creator>
      <dc:date>2023-08-24T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194257#M5391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/559029"&gt;@Romanich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what you asked but then I get the same error on the next line where RobApp.Project is called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there settings inside the GUI I can access and see what is happening line by line and debug this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194257#M5391</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-24T15:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194352#M5392</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this beginning for your code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stephanekapetanovic_1-1692892095848.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257692i0D1CE02AB2A85D0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stephanekapetanovic_1-1692892095848.png" alt="Stephanekapetanovic_1-1692892095848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12194352#M5392</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-08-24T19:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12196116#M5393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code provided by you, had to declare 'NotReady' in the start so that there is no compiler error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the debugger, showing the line making the same error again 'Runtime error - 2147024769 (8007007f)'. Can there be an issue with the complier being used by excel to execute the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12196116#M5393</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-25T08:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12196173#M5394</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106882"&gt;@darren.cosh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ok, I understand that the instance is not created. Try reinstalling the SDK 2022 or run your 2023 and test again.&lt;/P&gt;&lt;P&gt;change the definition of NotReady like this ↓ and tell me the result on Visible and ProjectActive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Visible = RobApp.Visible = -1
ProjectActive = RobApp.Project.IsActive = -1
NotReady = Not (Visible And ProjectActive)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 11:35:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12196173#M5394</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-08-25T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Robot - Excel VBA Error - Runtime error - 2147024769 (8007007f)</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12201406#M5395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reinstalled and now the original code is working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:26:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-robot-excel-vba-error-runtime-error-2147024769-8007007f/m-p/12201406#M5395</guid>
      <dc:creator>darren.cosh</dc:creator>
      <dc:date>2023-08-28T13:26:48Z</dc:date>
    </item>
  </channel>
</rss>

