<?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: Hello Inventor - vb.net Visual Studio - getting started in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636337#M146957</link>
    <description>&lt;P&gt;Forgive my ignorance.. is the 'myiLogicAddin' designed to allow iLogic to run from VB.net?&lt;/P&gt;&lt;P&gt;When adding an iLogic line of code a 'Not Declared' error is returned.&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="GoExcel.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1155344i9A89C1D05945D920/image-size/large?v=v2&amp;amp;px=999" role="button" title="GoExcel.PNG" alt="GoExcel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 13:03:23 GMT</pubDate>
    <dc:creator>andrew_canfield</dc:creator>
    <dc:date>2022-12-22T13:03:23Z</dc:date>
    <item>
      <title>Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11633909#M146897</link>
      <description>&lt;P&gt;Some of my previous requests relate to a grand idea to import a list of files into Inventor for further processing - printing, converting, replacing references on drawings, shrinkwrapping - a little like the task scheduler but the list can be exported from the PDM system &amp;amp; imported to excel &amp;amp; tweaked accordingly.&lt;/P&gt;&lt;P&gt;A VBA version to replace drawing references has been produced but VBA is 'unsupported' so a VB.net tool is being sort. (thanks:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/set-drawing-scale-from-list-using-vba/m-p/11619681#M146536" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/set-drawing-scale-from-list-using-vba/m-p/11619681#M146536&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;My guess is to move data between Excel &amp;amp; Inventor I need a better understanding of sub, function, public &amp;amp; private - relating to Inventor &amp;amp; Excel &amp;amp; how the lines of code target the information - there is a lot of code available &amp;amp; I can have it trigger error messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is 'Hello Inventor' - just finding code to launch Inventor took some searching..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelloInventor.png" style="width: 966px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1154886i3E18A975FCF1B7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="HelloInventor.png" alt="HelloInventor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating a windows form this was added&amp;nbsp;&amp;nbsp;in the button sub&amp;nbsp; &amp;amp; it works, as in it will open Inventor:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;       Dim proc As New System.Diagnostics.Process()

        proc = Process.Start("C:\Program Files\Autodesk\Inventor 2018\Bin\Inventor.exe", "")

        Dim oPart As Document
        Dim oPartPath As String
        Dim Thisdoc As Inventor.Document&lt;/LI-CODE&gt;&lt;P&gt;It was just a test to see how to open Inventor ( ideally Apprentice will be used for the finished tool).&lt;/P&gt;&lt;P&gt;Further testing to open specific files is throwing up errors which don't happen in iLogic because iLogic sits on Inventor &amp;amp; Visual Studio is outside Inventor. This project is to chop &amp;amp; change from file to file which (I'm advised) isn't iLogic friendly. ( also compared to iLogic efforts the VBA version is fast!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code between lines 18-35 was pasted in from an iLogic post with the intention it could be converted but the error messages are stumbling blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lines 33/34 are for the next test - have them opened/closed in Inventor by the form - just to test it can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great to see this tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.hjalte.nl/60-creating-an-inventor-addin" target="_blank"&gt;http://www.hjalte.nl/60-creating-an-inventor-addin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be ideal if a pure vb.net version could be offered (&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt; ) ; I did read if there are other ideas out there forward them on!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Back to the search...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 12:16:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11633909#M146897</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-21T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11633965#M146901</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1671626064391.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1154904iD62253015997CE8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1671626064391.png" alt="bradeneuropeArthur_0-1671626064391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 12:34:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11633965#M146901</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2022-12-21T12:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634007#M146903</link>
      <description>&lt;P&gt;Thankyou, trying to figure this out..&lt;/P&gt;&lt;P&gt;'&amp;lt;typename&amp;gt;' is an interface type and cannot be used as an expression&lt;BR /&gt;A type name occurs where an expression is required. An expression must consist of a combination of variables, constants, literals, properties, and Function procedure calls.&lt;BR /&gt;Error ID: BC30111&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Interfacetype.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1154912i31A033D4642C04C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Interfacetype.PNG" alt="Interfacetype.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 12:46:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634007#M146903</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-21T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634234#M146911</link>
      <description>&lt;P&gt;As far as I know, is the entire tutorial in pure VB.net. So I'm not sure what you would like to see.&lt;/P&gt;
&lt;P&gt;If you want to create a standalone application then you might want to have a look at the 3e part of the tutorial "Debugging without restating Inventor".&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.hjalte.nl/60-creating-an-inventor-addin" target="_blank" rel="noopener"&gt;Creating an Inventor Addin&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.hjalte.nl/61-adding-icons-to-your-buttons" target="_blank" rel="noopener"&gt;Adding icons to your buttons&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.hjalte.nl/62-debugging-addins" target="_blank" rel="noopener"&gt;Debugging without restarting Inventor&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.hjalte.nl/67-add-form" target="_blank" rel="noopener"&gt;Adding a form to your addin&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;There I create a application that connects to Inventor and runs as a standalone application. Here are the basics for getting the Inventor object. (It will start Inventor if it is not started jet.)&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim ThisApplication As Inventor.Application

Try
    ThisApplication = Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")
Catch ex As Exception
    Dim oType As Type = Type.GetTypeFromProgID("Inventor.Application")
    ThisApplication = System.Activator.CreateInstance(oType)
    ThisApplication.Visible = True
End Try

Dim ThisDoc As Document = ThisApplication.ActiveDocument&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:24:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634234#M146911</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-12-21T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634319#M146915</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Think I've started off on the wrong foot (again), used a windows form &amp;amp; not a method?&lt;/P&gt;&lt;P&gt;Not 100% sure - trying again with a different template.&lt;/P&gt;&lt;P&gt;Misunderstood the iLogic tutorial.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="method.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1154983i8C1C4B1265189A64/image-size/large?v=v2&amp;amp;px=999" role="button" title="method.PNG" alt="method.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 15:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11634319#M146915</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-21T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636180#M146953</link>
      <description>&lt;P&gt;Many thanks for the effort that's gone into the tutorials - I have a button!&lt;/P&gt;&lt;P&gt;Need to figure out how to use the button now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working through MyDebug &amp;amp; not seeing ThisRule() to add as a reference - should ThisRule() have a .dll?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Progressing, slowly..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thisRuledll.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1155313i47BE108B38235543/image-size/large?v=v2&amp;amp;px=999" role="button" title="thisRuledll.PNG" alt="thisRuledll.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 11:26:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636180#M146953</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-22T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636337#M146957</link>
      <description>&lt;P&gt;Forgive my ignorance.. is the 'myiLogicAddin' designed to allow iLogic to run from VB.net?&lt;/P&gt;&lt;P&gt;When adding an iLogic line of code a 'Not Declared' error is returned.&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="GoExcel.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1155344i9A89C1D05945D920/image-size/large?v=v2&amp;amp;px=999" role="button" title="GoExcel.PNG" alt="GoExcel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 13:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636337#M146957</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-22T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636363#M146958</link>
      <description>&lt;P&gt;No that will not work!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 13:16:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636363#M146958</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2022-12-22T13:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Inventor - vb.net Visual Studio - getting started</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636365#M146960</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 13:19:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/hello-inventor-vb-net-visual-studio-getting-started/m-p/11636365#M146960</guid>
      <dc:creator>andrew_canfield</dc:creator>
      <dc:date>2022-12-22T13:19:33Z</dc:date>
    </item>
  </channel>
</rss>

