<?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: Open ilogic forms from vb.net addin in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9048963#M71267</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/789372"&gt;@Slothian&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I actually experienced the same problem with Inventor freezing while running this code from a windows forms app. Don't really know why. Maybe &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt; can answer that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad it worked for your purpose however!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 05:47:37 GMT</pubDate>
    <dc:creator>JhoelForshav</dc:creator>
    <dc:date>2019-09-26T05:47:37Z</dc:date>
    <item>
      <title>Open ilogic forms from vb.net addin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9045896#M71264</link>
      <description>&lt;P&gt;This one has me puzzled, can you open an ilogic form from an addin?&lt;/P&gt;&lt;P&gt;If so, do you need to know the name of the form to do so programatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why - we have a large catalog of different design "templates" which generally have an ilogic form which controls the configuration of each design, ranging from dimension parameters to what components are used. Each template has a different name for the form and in 99% of cases only 1 form per template file. Only a handful of templates have a rule to open the form. I would like to add an "easy" button to the ribbon which allows access to the different configuration forms without knowing the name. I would need to make this work with our existing legacy files so renaming all the forms in the templates wouldn't be a solution.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:39:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9045896#M71264</guid>
      <dc:creator>Slothian</dc:creator>
      <dc:date>2019-09-25T02:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open ilogic forms from vb.net addin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9046291#M71265</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/789372"&gt;@Slothian&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I did some testing and managed to open the first form in the active document like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;_invApp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Application&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;GetObject&lt;/SPAN&gt;(, &lt;SPAN style="color: #008080;"&gt;"Inventor.Application"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;_iLogic&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ApplicationAddIn&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;_invApp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ApplicationAddIns&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ItemById&lt;/SPAN&gt;(
&lt;SPAN style="color: #008080;"&gt;"{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;_invApp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;_iLogic&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Automation&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddRule&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"tempRule"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"iLogicForm.Show(iLogicForm.FormNames.ElementAt(0))"&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;_iLogic&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Automation&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DeleteRule&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"tempRule"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;I couldn't find a way to open iLogic forms via API so my workaround is to create a rule via API that opens the form and then simply delete the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 06:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9046291#M71265</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-09-25T06:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Open ilogic forms from vb.net addin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9048549#M71266</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;, that did the trick, never thought of that workflow!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One interesting note... adding this to an addin (load on start with inventor) worked fine for me, no hassles.&lt;/P&gt;&lt;P&gt;I usually test all code through a .exe plug-in that hooks into Inventor (same method as described in the myfirst plug-in tutorial) which allows rapid test and debugging without the need to constantly restart inventor.&lt;/P&gt;&lt;P&gt;When I tested this code in the plug-in, the form would display blank, and Inventor would hang, requiring me to restart Inventor.&lt;/P&gt;&lt;P&gt;If anyone knows why would be interested to hear any theories?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI runnign Inventor 2019.4 and VS2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 22:13:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9048549#M71266</guid>
      <dc:creator>Slothian</dc:creator>
      <dc:date>2019-09-25T22:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Open ilogic forms from vb.net addin</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9048963#M71267</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/789372"&gt;@Slothian&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I actually experienced the same problem with Inventor freezing while running this code from a windows forms app. Don't really know why. Maybe &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt; can answer that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad it worked for your purpose however!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 05:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/open-ilogic-forms-from-vb-net-addin/m-p/9048963#M71267</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-09-26T05:47:37Z</dc:date>
    </item>
  </channel>
</rss>

