<?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 Dear Gurus :) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197945#M151795</link>
    <description>To start this thread, I'm going to ask a simple question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
How complicated is it to pass a text value from excel into a custom &lt;BR /&gt;
iproperty in Inventor?&lt;BR /&gt;
&lt;BR /&gt;
It stinks that parameters have to be numbers. I can't link parameters to the &lt;BR /&gt;
spreadsheet because some of the values are text.&lt;BR /&gt;
&lt;BR /&gt;
Replies are much appreciated!</description>
    <pubDate>Wed, 05 Mar 2008 22:46:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-05T22:46:56Z</dc:date>
    <item>
      <title>Dear Gurus :)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197945#M151795</link>
      <description>To start this thread, I'm going to ask a simple question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
How complicated is it to pass a text value from excel into a custom &lt;BR /&gt;
iproperty in Inventor?&lt;BR /&gt;
&lt;BR /&gt;
It stinks that parameters have to be numbers. I can't link parameters to the &lt;BR /&gt;
spreadsheet because some of the values are text.&lt;BR /&gt;
&lt;BR /&gt;
Replies are much appreciated!</description>
      <pubDate>Wed, 05 Mar 2008 22:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197945#M151795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-05T22:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dear Gurus :)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197946#M151796</link>
      <description>It is pretty simple when you use VB/VBA/.Net, BUT excel spreadsheets use different objects with each version. So to make an application universal and work in the long run, it is easier to use TAB delimited files containg all needed information. They can be opened by Excel straight away for editing if you like, and are easy to read/handle by your app.</description>
      <pubDate>Thu, 06 Mar 2008 05:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197946#M151796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-06T05:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dear Gurus :)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197947#M151797</link>
      <description>Thanks for the pointer. I really appreciate it. Would you happen to know of &lt;BR /&gt;
any good resources for Inventor VBA? Tutorials, WEBinars, books, etc.?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
&lt;JOERI&gt; wrote in message news:5867970@discussion.autodesk.com...&lt;BR /&gt;
It is pretty simple when you use VB/VBA/.Net, BUT excel spreadsheets use &lt;BR /&gt;
different objects with each version. So to make an application universal and &lt;BR /&gt;
work in the long run, it is easier to use TAB delimited files containg all &lt;BR /&gt;
needed information. They can be opened by Excel straight away for editing if &lt;BR /&gt;
you like, and are easy to read/handle by your app.&lt;/JOERI&gt;</description>
      <pubDate>Thu, 06 Mar 2008 12:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197947#M151797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-06T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dear Gurus :)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197948#M151798</link>
      <description>These groups and the Inventor help should do it. To get started (not tested):&lt;BR /&gt;
&lt;BR /&gt;
Private Sub GetText()&lt;BR /&gt;
'create a textfile that has multiple lines&lt;BR /&gt;
'each line starts with the property name&lt;BR /&gt;
'then a TAB (chr(9)) then the property value&lt;BR /&gt;
&lt;BR /&gt;
    Dim FileContents As String&lt;BR /&gt;
    FileContents = ReadFile("c:\Myfile.txt")&lt;BR /&gt;
        &lt;BR /&gt;
    Dim Lines() As String&lt;BR /&gt;
    Dim Vals() As String&lt;BR /&gt;
    Lines = Split(FileContents, vbCrLf)&lt;BR /&gt;
    &lt;BR /&gt;
    For Each Line In Lines&lt;BR /&gt;
        Vals = Split(Line, Chr(9))&lt;BR /&gt;
        If Vals(0) = "MyPropName" Then&lt;BR /&gt;
            Debug.Print "Prop value: " &amp;amp; Vals(1)&lt;BR /&gt;
            'grab the property in inventor and fill in the value&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Function ReadFile(FileName As String) As String&lt;BR /&gt;
'requires a reference to the Windows Script Host Object Model&lt;BR /&gt;
Dim FSO As New FileSystemObject&lt;BR /&gt;
Dim tsInput As TextStream&lt;BR /&gt;
Dim strLine As String&lt;BR /&gt;
&lt;BR /&gt;
Set tsInput = FSO.OpenTextFile(FileName, 1)&lt;BR /&gt;
Dim FileStr As String&lt;BR /&gt;
Do While Not tsInput.AtEndOfStream&lt;BR /&gt;
    strLine = tsInput.ReadLine&lt;BR /&gt;
    FileStr = FileStr &amp;amp; strLine&lt;BR /&gt;
Loop&lt;BR /&gt;
tsInput.Close&lt;BR /&gt;
Set FSO = Nothing&lt;BR /&gt;
&lt;BR /&gt;
ReadFile = FileStr&lt;BR /&gt;
End Function</description>
      <pubDate>Thu, 06 Mar 2008 14:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197948#M151798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-06T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dear Gurus :)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197949#M151799</link>
      <description>Thanks again!&lt;BR /&gt;
&lt;BR /&gt;
&lt;JOERI&gt; wrote in message news:5868237@discussion.autodesk.com...&lt;BR /&gt;
These groups and the Inventor help should do it. To get started (not &lt;BR /&gt;
tested):&lt;BR /&gt;
&lt;BR /&gt;
Private Sub GetText()&lt;BR /&gt;
'create a textfile that has multiple lines&lt;BR /&gt;
'each line starts with the property name&lt;BR /&gt;
'then a TAB (chr(9)) then the property value&lt;BR /&gt;
&lt;BR /&gt;
    Dim FileContents As String&lt;BR /&gt;
    FileContents = ReadFile("c:\Myfile.txt")&lt;BR /&gt;
&lt;BR /&gt;
    Dim Lines() As String&lt;BR /&gt;
    Dim Vals() As String&lt;BR /&gt;
    Lines = Split(FileContents, vbCrLf)&lt;BR /&gt;
&lt;BR /&gt;
    For Each Line In Lines&lt;BR /&gt;
        Vals = Split(Line, Chr(9))&lt;BR /&gt;
        If Vals(0) = "MyPropName" Then&lt;BR /&gt;
            Debug.Print "Prop value: " &amp;amp; Vals(1)&lt;BR /&gt;
            'grab the property in inventor and fill in the value&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Function ReadFile(FileName As String) As String&lt;BR /&gt;
'requires a reference to the Windows Script Host Object Model&lt;BR /&gt;
Dim FSO As New FileSystemObject&lt;BR /&gt;
Dim tsInput As TextStream&lt;BR /&gt;
Dim strLine As String&lt;BR /&gt;
&lt;BR /&gt;
Set tsInput = FSO.OpenTextFile(FileName, 1)&lt;BR /&gt;
Dim FileStr As String&lt;BR /&gt;
Do While Not tsInput.AtEndOfStream&lt;BR /&gt;
    strLine = tsInput.ReadLine&lt;BR /&gt;
    FileStr = FileStr &amp;amp; strLine&lt;BR /&gt;
Loop&lt;BR /&gt;
tsInput.Close&lt;BR /&gt;
Set FSO = Nothing&lt;BR /&gt;
&lt;BR /&gt;
ReadFile = FileStr&lt;BR /&gt;
End Function&lt;/JOERI&gt;</description>
      <pubDate>Thu, 06 Mar 2008 15:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dear-gurus/m-p/2197949#M151799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-06T15:12:23Z</dc:date>
    </item>
  </channel>
</rss>

