<?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 Link excel cells to Inventor Drawing Text in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5860557#M114954</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have been searching for a solution but not found one.&lt;/P&gt;&lt;P&gt;Is there a way to link a specific cell in an excel spreadsheet to a Text in an Inventor Drawing using iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have on my Drawing some Textfields that i want to drive from an excel spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/194343i6300AD874035F842/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="Text.JPG" title="Text.JPG" /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/194344i2789E1D9AE485682/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="Text excel.JPG" title="Text excel.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Textfields on my Drawing. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel Spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the Value from column B to be inserted into the drawing Textfields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found this from Curtis W, and its something like this im after.&lt;/P&gt;&lt;P&gt;&lt;A href="http://inventortrenches.blogspot.se/2014/06/ilogic-titleblock-project-data-from.html" target="_blank"&gt;http://inventortrenches.blogspot.se/2014/06/ilogic-titleblock-project-data-from.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Inventor 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Jesper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 07:02:48 GMT</pubDate>
    <dc:creator>Jesper_S</dc:creator>
    <dc:date>2015-10-14T07:02:48Z</dc:date>
    <item>
      <title>Link excel cells to Inventor Drawing Text</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5860557#M114954</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have been searching for a solution but not found one.&lt;/P&gt;&lt;P&gt;Is there a way to link a specific cell in an excel spreadsheet to a Text in an Inventor Drawing using iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have on my Drawing some Textfields that i want to drive from an excel spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/194343i6300AD874035F842/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="Text.JPG" title="Text.JPG" /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/194344i2789E1D9AE485682/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="Text excel.JPG" title="Text excel.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Textfields on my Drawing. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Excel Spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the Value from column B to be inserted into the drawing Textfields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found this from Curtis W, and its something like this im after.&lt;/P&gt;&lt;P&gt;&lt;A href="http://inventortrenches.blogspot.se/2014/06/ilogic-titleblock-project-data-from.html" target="_blank"&gt;http://inventortrenches.blogspot.se/2014/06/ilogic-titleblock-project-data-from.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Inventor 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Jesper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 07:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5860557#M114954</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2015-10-14T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Link excel cells to Inventor Drawing Text</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5861084#M114955</link>
      <description>&lt;P&gt;I believe the only way is like how Curtis accomplished it; have an iLogic routine that pushes values into prompted entry textboxes.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5861084#M114955</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-10-14T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Link excel cells to Inventor Drawing Text</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5862472#M114956</link>
      <description>&lt;P&gt;Hi, why does it need to be linked to Excel? Are you using this Excel table for something else or do you want to use it for more than one drawing?&lt;/P&gt;&lt;P&gt;My point is, that you can have these textfields in your template and fill them with a form. I have button added to ribbon so it is easy to use.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 04:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5862472#M114956</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-10-15T04:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Link excel cells to Inventor Drawing Text</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5862487#M114957</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My customer want to use Excel. They link it to another application also so i kind of have to use Excel.&lt;/P&gt;&lt;P&gt;There is no way to link the cells to a Custom iProperty in the drawing? Then i can link the Textfield to that property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started to use a form but my customer said no.&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 05:40:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5862487#M114957</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2015-10-15T05:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Link excel cells to Inventor Drawing Text</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5864157#M114958</link>
      <description>&lt;P&gt;Hi, you have to think witch trigger to use for it (new document, before save etc.), but I think that you can use one of these&amp;nbsp;rules below (you have to modify it for your needs ofc.).&lt;/P&gt;&lt;P&gt;If you already have the iProperties in place than you can use this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GoExcel.Open("C:\myfolder\myexceltable.xlsx", "Sheet1")
iProperties.Value("Custom", "Text 1") = GoExcel.CellValue("B2")&lt;BR /&gt;iProperties.Value("Custom", "Text 2") = GoExcel.CellValue("B3")&lt;BR /&gt;...&lt;BR /&gt;GoExcel.Close&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;If you want the iProperty names to be taken from the excel table than you can use this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GoExcel.Open("C:\myfolder\myexceltable.xlsx", "Sheet1")&lt;BR /&gt;Dim oName As String = GoExcel.CellValue("A2")&lt;BR /&gt;iProperties.Value("Custom", oName) = GoExcel.CellValue("B2")&lt;BR /&gt;oName = GoExcel.CellValue("A3")&lt;BR /&gt;iProperties.Value("Custom", oName) = GoExcel.CellValue("B3")&lt;BR /&gt;...&lt;BR /&gt;GoExcel.Close&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you have a lot of text cells than you can use this one to automate the procces. It will find all filled cells in all rows up to infinity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GoExcel.Open("C:\myfolder\myexceltable.xlsx", "Sheet1")&lt;BR /&gt;RowStart = 2&lt;BR /&gt;RowEnd = 100
For countA = RowStart To (RowEnd * 0.01) + RowStart
    If Not String.IsNullOrEmpty(GoExcel.CellValue("A" &amp;amp; RowEnd)) Then
        RowEnd = RowEnd + 100
    Else
        Exit For
    End If
Next

For rowPN = RowStart To RowEnd
    If String.IsNullOrEmpty(GoExcel.CellValue("A" &amp;amp; RowPN)) Then
	rowN = rowPN - 1
	Exit For
    End If
Next
For oRow = RowStart To RowN&lt;BR /&gt;    Dim oName As String = GoExcel.CellValue("A" &amp;amp; oRow)&lt;BR /&gt;    iProperties.Value("Custom", oName) = GoExcel.CellValue("B" &amp;amp; oRow)&lt;BR /&gt;Next&lt;BR /&gt;GoExcel.Close&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Just remember, that the last rule will stop on first empty row it will find.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 04:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/link-excel-cells-to-inventor-drawing-text/m-p/5864157#M114958</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-10-16T04:57:37Z</dc:date>
    </item>
  </channel>
</rss>

