<?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: Inventor 2022 : Call iLogicVb in an external EXE application. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11836975#M150368</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10068538"&gt;@Louie_Harvey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your answer, I can easily access the Automation property.&lt;/P&gt;&lt;P&gt;But I can't access iLogicVb which is at a higher level.&lt;/P&gt;&lt;P&gt;I'm not sure it's possible, maybe it's too "high" and access is not possible outside iLogic?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vpeuvion_0-1679416147738.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1191487i5B278F22587EA949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vpeuvion_0-1679416147738.png" alt="vpeuvion_0-1679416147738.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 16:29:50 GMT</pubDate>
    <dc:creator>vpeuvion</dc:creator>
    <dc:date>2023-03-21T16:29:50Z</dc:date>
    <item>
      <title>Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11833465#M150315</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is it possible to call iLogicVb as ILowLevelSupport in an external EXE application?&lt;BR /&gt;What I would like to do:&lt;/P&gt;&lt;P&gt;Dim MyiLogicVb As Autodesk.iLogic.Interfaces.ILowLevelSupport&lt;BR /&gt;MyiLogicVb =&lt;/P&gt;&lt;P&gt;I did a lot of searching without success. I don't know if this is possible, does anyone know and can help me?&lt;BR /&gt;Any help would be appreciated, thanks.&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 10:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11833465#M150315</guid>
      <dc:creator>vpeuvion</dc:creator>
      <dc:date>2023-03-20T10:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11833914#M150325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8016681" target="_self"&gt;&lt;SPAN class=""&gt;vpeuvion&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;sorry if I'm barking up the wrong tree but cant you use&lt;SPAN&gt;&amp;nbsp;"Autodesk.iLogic.Interfaces.IiLogicAutomation" it seems to have nearly all the same Methods?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub GetAuto()
    Dim Doc As Inventor.Document = Globals.m_inventorApplication.ActiveEditDocument
    Dim iLogicAddinGuid = "{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}"
    Dim iLogicAddin As ApplicationAddIn = DirectCast(Nothing, ApplicationAddIn)
    Dim iLogicAutomation As IiLogicAutomation = DirectCast(Nothing, IiLogicAutomation)
    Try
        iLogicAddin = Globals.m_inventorApplication.ApplicationAddIns.ItemById(iLogicAddinGuid)
        iLogicAutomation = CType(iLogicAddin.Automation, IiLogicAutomation)
    Catch
        MessageBox.Show("fail")
    End Try
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:04:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11833914#M150325</guid>
      <dc:creator>Louie_Harvey</dc:creator>
      <dc:date>2023-03-20T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11836975#M150368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10068538"&gt;@Louie_Harvey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your answer, I can easily access the Automation property.&lt;/P&gt;&lt;P&gt;But I can't access iLogicVb which is at a higher level.&lt;/P&gt;&lt;P&gt;I'm not sure it's possible, maybe it's too "high" and access is not possible outside iLogic?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vpeuvion_0-1679416147738.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1191487i5B278F22587EA949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vpeuvion_0-1679416147738.png" alt="vpeuvion_0-1679416147738.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:29:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11836975#M150368</guid>
      <dc:creator>vpeuvion</dc:creator>
      <dc:date>2023-03-21T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11852670#M150625</link>
      <description>Hi Sorry for a late reply I've looked into it and ILowLevelSupport doesn't even show up in "autodesk.inventor.interop.dll" i went though a few .dll's in "C:\Program Files\Autodesk\Inventor 2022\Bin" and found it in "Autodesk.iLogic.Interfaces.dll" but it only provides the class not a way to use it like ilogicVb, I would say that ThisRule, ThisApplication, esc are native and cant be accessed outside the application but if u find a way around it please post it here sorry to be little help</description>
      <pubDate>Tue, 28 Mar 2023 07:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11852670#M150625</guid>
      <dc:creator>Louie_Harvey</dc:creator>
      <dc:date>2023-03-28T07:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11853727#M150646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8016681"&gt;@vpeuvion&lt;/a&gt;.&amp;nbsp; I do not create add-ins or exe's myself, but it looks to me like that 'iLogicVb' is just a term (like a variable) that is declared within the 'ThisRule' Class for us automatically in the background in the iLogic rule editor environment.&amp;nbsp; So, it seems to me that as long as you have included a reference to the Autodesk.iLogic.Interfaces resource, I'm thinking you should be able to simply recreate that same variable within your routine.&amp;nbsp; And I don't think you even need to instantiate it with the 'New' keyword.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim iLogicVb As Autodesk.iLogic.Interfaces.ILowLevelSupport&lt;/LI-CODE&gt;
&lt;P&gt;Likely the biggest catch in trying to use it in an external exe is that this is a resource for an Inventor ApplicationAddIn, which resides inside of the Inventor process, and likely only gets looked at after Inventor has fully loaded, and after the iLogic add-in has loaded, so that resource may be looking for / referring to / trying to access other accompanying resources that are only available after that stage in the process.&amp;nbsp; And I believe exe's run outside of the Inventor process, by design, making this an odd situation.&amp;nbsp; There may need to be accompanying resources referenced/imported in order to make that work.&amp;nbsp; But I am not an expert in coding for exe's, so I may not be making much sense here.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11853727#M150646</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-03-28T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2022 : Call iLogicVb in an external EXE application.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11855292#M150679</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10068538"&gt;@Louie_Harvey&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;, thank you for your answers.&lt;BR /&gt;I really feel like you can't use it outside of iLogic, but you can declare it easily.&lt;BR /&gt;I did quite a bit of testing and when I was coding&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim iLogicVb As Autodesk.iLogic.Interfaces.ILowLevelSupport&lt;/PRE&gt;&lt;P&gt;I was getting an error saying 'iLogicVb was Nothing' when I tried to use it.&lt;BR /&gt;I tried creating a new instance and I got an error saying 'New' cannot be used on an interface.&lt;BR /&gt;I had thought to have found a track while passing by addIn.parent but I did not manage to find the continuation.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;addIn&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ApplicationAddIn&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;.&lt;SPAN&gt;ItemById&lt;/SPAN&gt;(&lt;SPAN&gt;"{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}"&lt;/SPAN&gt;)
&lt;SPAN&gt;addIn&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;My EXE is started after Inventor is fully loaded, it connects to the current inventor application, I thought it was possible to grab the current application's iLogicVb.&lt;BR /&gt;I asked the question to a consultant who replied that it was not valid outside of ilogic.&lt;BR /&gt;Maybe since it's part of ThisRule.iLogicVb, it's only accessible when an iLogic rule is running.&lt;BR /&gt;For the moment I have no more ideas, I work in degraded mode by passing the Automation As IiLogicAutomation.&lt;BR /&gt;In any case thank you for your answers, if I have news I will post them.&lt;BR /&gt;THANKS.&lt;/P&gt;&lt;P&gt;Vincent.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 06:14:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2022-call-ilogicvb-in-an-external-exe-application/m-p/11855292#M150679</guid>
      <dc:creator>vpeuvion</dc:creator>
      <dc:date>2023-03-29T06:14:34Z</dc:date>
    </item>
  </channel>
</rss>

