<?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 inventor vba user parameter in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6576687#M106545</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I was trying to put together a vba for inventor that would let user browse for excel file with three columns; column A for name of parameter, B will be value and C units. Then vba will loop through the excel get the parameter name and see if it exist in the inventor file, if so it will just get the value and unit ,if not it will create the user parameter. So far I got the vba to browse for the file and open and after that I couldn’t figure out how to do the loop. when i run the vba it let me pick the excel file then it will freeze. With the help of this forum I have an ilogic rule that does it but I am trying to have the vba version of it. i have attached the vba i have as &amp;nbsp;a text. sample vba or guidance will be appreciated. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 20:37:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-21T20:37:43Z</dc:date>
    <item>
      <title>inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6576687#M106545</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I was trying to put together a vba for inventor that would let user browse for excel file with three columns; column A for name of parameter, B will be value and C units. Then vba will loop through the excel get the parameter name and see if it exist in the inventor file, if so it will just get the value and unit ,if not it will create the user parameter. So far I got the vba to browse for the file and open and after that I couldn’t figure out how to do the loop. when i run the vba it let me pick the excel file then it will freeze. With the help of this forum I have an ilogic rule that does it but I am trying to have the vba version of it. i have attached the vba i have as &amp;nbsp;a text. sample vba or guidance will be appreciated. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:37:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6576687#M106545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6577034#M106546</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;You could do the following (no coding supplied)&lt;BR /&gt;&lt;BR /&gt;Open excel&lt;BR /&gt;County how many rows have data&lt;BR /&gt;Get the row count and do a loop&lt;BR /&gt;&lt;BR /&gt;For I =0 to RowCount&lt;BR /&gt;Get each value and check with Inventor&lt;BR /&gt;Next I&lt;BR /&gt;&lt;BR /&gt;I've never been a fan of Do While&lt;BR /&gt;&lt;BR /&gt;FYI&lt;BR /&gt;&lt;BR /&gt;Your inventor code opens a connection each loop. That could be a lot of memory. You would be better with a routine that&lt;BR /&gt;&lt;BR /&gt;Makes a single connection to the doc and keep it&lt;BR /&gt;Store the connection as a variable&lt;BR /&gt;Move the code for inventor to a function&lt;BR /&gt;Call the function passing the active doc&lt;BR /&gt;Do your looping&lt;BR /&gt;Close the connection.&lt;BR /&gt;&lt;BR /&gt;An example:&lt;BR /&gt;&lt;BR /&gt;Sub GetParams ()&lt;BR /&gt;&lt;BR /&gt;'Make your excel connection here&lt;BR /&gt;'Loop your parameters here&lt;BR /&gt;&lt;BR /&gt;'Row Count = amount of rows with data&lt;BR /&gt;&lt;BR /&gt;Dim oDoc As Document&lt;BR /&gt;Set oDoc As ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;For i = 0 to RowCount&lt;BR /&gt;ParamName = Row.Value&lt;BR /&gt;&lt;BR /&gt;Call CheckParams (ParamName, oDoc)&lt;BR /&gt;&lt;BR /&gt;oDoc.Close&lt;BR /&gt;oDoc = Nothing&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Function CheckParams (ParamName As String, doc As Inventor.Document)&lt;BR /&gt;&lt;BR /&gt;'Do your inventor work here using ParamName &amp;amp; Doc&lt;BR /&gt;&lt;BR /&gt;End Function&lt;BR /&gt;&lt;BR /&gt;This is one connection to excel, one connection to the Inventor Document.&lt;BR /&gt;&lt;BR /&gt;If you struggle, give me a shout and i'll rustle something up&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Nacho&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Sep 2016 00:37:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6577034#M106546</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2016-09-22T00:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6578756#M106547</link>
      <description>&lt;P&gt;Nacho,&lt;/P&gt;&lt;P&gt;Thank you for taking the time to help me out. Sorry I forgot to mention it but I am completely new to vba and so far my experience have been to get codes from forums/help file then modify them to fit my need. I did try to build upon the example you provided me but I couldn’t get anywhere after researching for a while. Attached is what I did based on your suggestion not sure if I even did that right, could you build upon it when you get the chance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam t. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 17:55:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6578756#M106547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6579484#M106548</link>
      <description>&lt;P&gt;no probs mate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'll take a look tomorrow (Friday)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nacho&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 00:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6579484#M106548</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2016-09-23T00:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6615913#M106549</link>
      <description>Hey man&lt;BR /&gt;&lt;BR /&gt;Sorry I got occupied elsewhere. If you want to send me your project / file / workbook, I'll sort it out tomorrow&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Nacho</description>
      <pubDate>Tue, 11 Oct 2016 19:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6615913#M106549</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2016-10-11T19:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6615916#M106550</link>
      <description>Email nmjshaw at Outlook dot com</description>
      <pubDate>Tue, 11 Oct 2016 19:45:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6615916#M106550</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2016-10-11T19:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6617374#M106551</link>
      <description>&lt;P&gt;Just sent you an email. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 12:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6617374#M106551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T12:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: inventor vba user parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6617379#M106552</link>
      <description>&lt;P&gt;got it mate, will look at it later&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 12:52:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vba-user-parameter/m-p/6617379#M106552</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2016-10-12T12:52:32Z</dc:date>
    </item>
  </channel>
</rss>

