<?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 VBA UserForm documentation or tutorials? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565063#M79431</link>
    <description>&lt;P&gt;Actually, both iLogic and the VBA editor&amp;nbsp;(found under Tools tab --&amp;gt; Options panel --&amp;gt; VBA editor) provide extensive access to the Inventor API. In my experience, iLogic actually has more bells and whistles than VBA because, if I understand correctly, iLogic uses .NET which is new and improved over VBA. But they both have the same extensive access to the Inventor API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, here's the API reference manual, everything in it is accessible via both iLogic and VBA:&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-75023241-53FC-48DB-869F-07E44091DE96" target="_blank" rel="noopener"&gt;Inventor API Reference Manual&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2019 20:31:13 GMT</pubDate>
    <dc:creator>DRoam</dc:creator>
    <dc:date>2019-01-31T20:31:13Z</dc:date>
    <item>
      <title>Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8564416#M79429</link>
      <description>&lt;P&gt;I'm trying to create my first VBA UserForm. I'm starting with the basics like hooking up "OK" and "Cancel" buttons. I would follow the Windows .NET documentation, but apparently the Inventor userforms are different from .NET user forms, because the forms and their controls seem to have different methods and properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any documentation or tutorials on how to create UserForms in Inventor VBA?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, how do I:&lt;/P&gt;
&lt;UL style="list-style-position: inside;"&gt;
&lt;LI&gt;Make the Cancel button close my form (not just hide it)?&lt;/LI&gt;
&lt;LI&gt;Hook up the "Enter" key to my OK button code?&lt;/LI&gt;
&lt;LI&gt;Hook up the "Esc" key to my Cancel button code?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8564416#M79429</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-01-31T16:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8564429#M79430</link>
      <description>&lt;P&gt;As far as I'm aware we don't have any API Access to the code for the Forms in Inventor, the only stuff we can use iLogic for are the options in the snippets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So those things aren't possible at the moment, whether they expand on forms in future releases or not remains to be seen.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:44:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8564429#M79430</guid>
      <dc:creator>richard_griffin</dc:creator>
      <dc:date>2019-01-31T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565063#M79431</link>
      <description>&lt;P&gt;Actually, both iLogic and the VBA editor&amp;nbsp;(found under Tools tab --&amp;gt; Options panel --&amp;gt; VBA editor) provide extensive access to the Inventor API. In my experience, iLogic actually has more bells and whistles than VBA because, if I understand correctly, iLogic uses .NET which is new and improved over VBA. But they both have the same extensive access to the Inventor API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, here's the API reference manual, everything in it is accessible via both iLogic and VBA:&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-75023241-53FC-48DB-869F-07E44091DE96" target="_blank" rel="noopener"&gt;Inventor API Reference Manual&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:31:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565063#M79431</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-01-31T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565077#M79432</link>
      <description>&lt;P&gt;I managed to figure out how to do the things I listed in my OP. In case it helps anyone else...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make my cancel button close the form, I just had to add this line to the "Click" sub for my cancel button:&lt;/P&gt;
&lt;PRE&gt;Unload Me&lt;/PRE&gt;
&lt;P&gt;To hook up Enter and Escape, I added this block to the "KeyPress" sub for the form itself:&lt;/P&gt;
&lt;PRE&gt;    Select Case KeyAscii
        Case 27
            Call myCancelButton_Click
        Case 13
            Call myOKButton_Click
    End Select&lt;/PRE&gt;
&lt;P&gt;(the ASCII code for other keys can be found here:&amp;nbsp;&lt;A href="http://www.asciitable.com/" target="_blank" rel="noopener"&gt;ASCII Table&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:36:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565077#M79432</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-01-31T20:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565080#M79433</link>
      <description>&lt;P&gt;I'm still looking for a reference or tutorial though, if anyone knows of any.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8565080#M79433</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-01-31T20:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566502#M79434</link>
      <description>&lt;P&gt;Are you talking about making a custom VBA form outside of Inventor to connect with Inventor, or making an Inventor user form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Making an iLogic userform is pretty easy, but it is really limited compared to a full VBA form.&amp;nbsp; As for making a full VBA form, I've personally never done it, but my understanding is to make the form in Visual Studio and then you can bring in that form via a wizard in iLogic.&amp;nbsp; Here's a video that goes over that:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=yJdHdSIW8qM&amp;amp;index=4&amp;amp;list=PLetTiL10gBjH1duj0BKQObSejXfTD16Vh" target="_blank"&gt;https://www.youtube.com/watch?v=yJdHdSIW8qM&amp;amp;index=4&amp;amp;list=PLetTiL10gBjH1duj0BKQObSejXfTD16Vh&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The rest of the playlist is pretty good for iLogic tips and tricks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to detail what you're looking to do with this form?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566502#M79434</guid>
      <dc:creator>philip1009</dc:creator>
      <dc:date>2019-02-01T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566558#M79435</link>
      <description>&lt;P&gt;To clarify, this is the form editor I'm talking about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor VBA User Form Editor.png" style="width: 848px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/598164iF8F3C1E8F077A38B/image-dimensions/848x414?v=v2" width="848" height="414" role="button" title="Inventor VBA User Form Editor.png" alt="Inventor VBA User Form Editor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll look into using Visual Studio (although we don't have a license, so the free version would have to be capable of doing this).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for what I'm doing, basically just creating a dialog with dropdowns and fields for controlling properties or configurators in parts.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566558#M79435</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-02-01T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566627#M79436</link>
      <description>&lt;P&gt;Excel uses VBA (as I'm sure that you're aware) and there is a ton (imperial not metric&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;) of stuff out there about making forms (in the VBA editor) in excel. That is how I learned to do it and the basic form creation concepts are a direct transfer. That is where I would start is a good old fashioned Google&amp;gt;"VBA Excel form tutorial".&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566627#M79436</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2019-02-01T14:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566717#M79437</link>
      <description>&lt;P&gt;Brilliant, I didn't think of that. Did a google search for "VBA excel user form" and these two results were near the top, both of them seem really helpful and informative:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.excel-easy.com/vba/userform.html" target="_blank" rel="noopener"&gt;Excel-Easy: Userform&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://excelmacromastery.com/vba-user-forms-1/" target="_blank" rel="noopener"&gt;VBA UserForm – A Guide for Everyone&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good suggestion. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/8566717#M79437</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-02-01T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor VBA UserForm documentation or tutorials?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/9600895#M79438</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1171223"&gt;@DRoam&lt;/a&gt;&amp;nbsp;This for this thread and links guys.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 10:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-userform-documentation-or-tutorials/m-p/9600895#M79438</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2020-06-25T10:43:59Z</dc:date>
    </item>
  </channel>
</rss>

