<?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: ilogic to find the next free cell in excel in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12022106#M130636</link>
    <description>&lt;P&gt;Thanks. I did it yesterday like you said.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 07:08:27 GMT</pubDate>
    <dc:creator>ulasdeniz</dc:creator>
    <dc:date>2023-06-09T07:08:27Z</dc:date>
    <item>
      <title>ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3939271#M130625</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;What im trying to do is take the iproperties from an inventor .dwg, and place them into a specific excel spreadsheet.&lt;BR /&gt;I've managed to get so far, by using code that Curtis posted, which does the opposite of what im looking to do.The code Curtis posted takes info from excel and fills in iprops.&lt;BR /&gt;I can fill in specfic cells, for instance columns A, B &amp;amp; C on Row 1 and place that info into a specific spreadsheet.&lt;BR /&gt;But my code falls down when i run the code on another .dwg, It obviously overwrites what was previously in those cells.... I am looking for the code that looks to see if those cells are in use, and if so, go to the next available cell down.&lt;BR /&gt;Or if anyone has done this before and would be so kind as to share your knowledge it would be greatly appreciated.&lt;BR /&gt;Many thanks.</description>
      <pubDate>Mon, 27 May 2013 21:05:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3939271#M130625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-27T21:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3945828#M130626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like a question of Excel API only, instead of Inventor API. You may have to consult with Excel. But if you could clarify a bit on "&lt;EM&gt;cells are in use&lt;/EM&gt;", probably some peers here would be able to give some comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 03:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3945828#M130626</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-06-04T03:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3946418#M130627</link>
      <description>&lt;P&gt;Fleagle,&lt;/P&gt;&lt;P&gt;Can you post your code? There's a few ways to do this, but it depends on your method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xiaodong Liang&lt;STRONG&gt;, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;He means is the cell empty or not.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:33:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3946418#M130627</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-06-04T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3948541#M130628</link>
      <description>&lt;P&gt;Hi jdkriek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for your reply, please see below for the code im running (very basic).&lt;/P&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;&lt;/P&gt;&lt;PRE&gt;StartRule:

 
'read excel file
 Worksheet=("C:\Workspace\00Vault\ACE-02001- ACE-02500\ACE-02380\ACE-02380-080017")
 Sheetno= ("Sheet1")
GoExcel.Open(Worksheet, Sheetno)


For row = 2 To 10000

If GoExcel.CellValue("A" &amp;amp; row) = "" Then GoExcel.CellValue("A" &amp;amp; row) =iProperties.Value("Project", "Part Number")
If GoExcel.CellValue("B" &amp;amp; row) = "" Then GoExcel.CellValue("B" &amp;amp; row) =iProperties.Value("Project", "Revision Number")
If GoExcel.CellValue("D" &amp;amp; row) = "" Then GoExcel.CellValue("D" &amp;amp; row) =iProperties.Value("Status", "Eng. Approved Date" )
If GoExcel.CellValue("F" &amp;amp; row) = "" Then GoExcel.CellValue("F" &amp;amp; row) =iProperties.Value("Project", "Description")


Exit For 

Next



GoExcel.Save&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As you will notice there has to be an excel file already saved in the location specified in the 'Worksheet' section of the code...&lt;/P&gt;&lt;P&gt;Any help would be Brilliant!!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 13:47:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3948541#M130628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-06T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3948845#M130629</link>
      <description>&lt;P&gt;The code you are using really isn't intended to do what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wrote this real quick, hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Worksheet = ("C:\Workspace\00Vault\ACE-02001- ACE-02500\ACE-02380\ACE-02380-080017")
Sheetno = ("Sheet1")
' Open excel 
GoExcel.Open(Worksheet, Sheetno)
' Define Range
RowStart = 2
RowEnd = 100
For count = RowStart To RowEnd
	' If it's blank count it
	If String.IsNullOrEmpty(GoExcel.CellValue("A" &amp;amp; count)) Then 
		i = i + 1
	End If
Next
' Next empty row is max rows minus blank rows plus one
row = RowEnd - i + 1
MsgBox("Inserting Data on Row " &amp;amp; row)
GoExcel.CellValue("A" &amp;amp; row) = iProperties.Value("Project", "Part Number")
GoExcel.CellValue("B" &amp;amp; row) = iProperties.Value("Project", "Revision Number")
GoExcel.CellValue("D" &amp;amp; row) = iProperties.Value("Status", "Eng. Approved Date")
GoExcel.CellValue("F" &amp;amp; row) = iProperties.Value("Project", "Description")
GoExcel.Save&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/3948845#M130629</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-06-06T17:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/4296355#M130630</link>
      <description>&lt;P&gt;It worked like a charm &lt;A target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/341185"&gt;&lt;SPAN&gt;jdkriek&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;thanks sooooooooooooo much&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2013 14:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/4296355#M130630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-12T14:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/4296402#M130631</link>
      <description>&lt;P&gt;You're quite welcome, glad I could help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2013 14:38:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/4296402#M130631</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-06-12T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/5270809#M130632</link>
      <description>Hey! I tried using this code and modifying it, but it keeps telling me I can't use the Row type in an expression. (or something along those lines). Was wonder if you could help me out, please and thanks!&lt;BR /&gt;&lt;BR /&gt;The code is:&lt;BR /&gt;'creating dummy properties for the user and filename to use in next rule&lt;BR /&gt;SharedVariable("Path")= ThisDoc.PathAndFileName(True)&lt;BR /&gt;iProperties.Value("Custom", "Draftsman")= ThisApplication.GeneralOptions.UserName&lt;BR /&gt;&lt;BR /&gt;'my attempt at using an input box with a temporary variable to store my change notes&lt;BR /&gt;SharedVariable("REVI")= InputBox("What did you change?", "REV", "")&lt;BR /&gt;&lt;BR /&gt;'runs next rule&lt;BR /&gt;'iLogicVb.RunRule("EXCEL LOG")&lt;BR /&gt;&lt;BR /&gt;Worksheet = ("C:\Documents\Excel File Log")&lt;BR /&gt;Sheetno = ("Sheet1")&lt;BR /&gt;' Open excel&lt;BR /&gt;GoExcel.Open(Worksheet, Sheetno)&lt;BR /&gt;' Define Range&lt;BR /&gt;RowStart = 2&lt;BR /&gt;RowEnd = 100&lt;BR /&gt;For count = RowStart To RowEnd&lt;BR /&gt;' If it's blank count it&lt;BR /&gt;If String.IsNullOrEmpty(GoExcel.CellValue("A" &amp;amp; count)) Then&lt;BR /&gt;i = i + 1&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;' Next empty row is max rows minus blank rows plus one&lt;BR /&gt;row = RowEnd - i + 1&lt;BR /&gt;GoExcel.CellValue("A" &amp;amp; row) = TimeString&lt;BR /&gt;GoExcel.CellValue("B" &amp;amp; row) = DateString&lt;BR /&gt;GoExcel.CellValue("C" &amp;amp; row) = iProperties.Value("Custom", "Draftsman")&lt;BR /&gt;GoExcel.CellValue("D" &amp;amp; row) = SharedVariable("REVI")&lt;BR /&gt;GoExcel.CellValue("E" &amp;amp; row) = SharedVariable("Path")&lt;BR /&gt;GoExcel.Save</description>
      <pubDate>Fri, 12 Sep 2014 13:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/5270809#M130632</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2014-09-12T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12020014#M130633</link>
      <description>&lt;P&gt;it says&amp;nbsp; "Error on Line 31 : 'row' is a type and cannot be used as an expression". How can I a solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12020014#M130633</guid>
      <dc:creator>ulas.deniz</dc:creator>
      <dc:date>2023-06-08T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12021690#M130634</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2413673"&gt;@ulas.deniz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post the code your using to determine what line 31 is?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:34:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12021690#M130634</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-06-09T00:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12021806#M130635</link>
      <description>Try using the same code, but replace 'row' with 'currow' or something other&lt;BR /&gt;than row.&lt;BR /&gt;&lt;BR /&gt;'Row' is a 'protected' word in the code which is why it's getting confused.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2023 02:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12021806#M130635</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2023-06-09T02:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to find the next free cell in excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12022106#M130636</link>
      <description>&lt;P&gt;Thanks. I did it yesterday like you said.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 07:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-find-the-next-free-cell-in-excel/m-p/12022106#M130636</guid>
      <dc:creator>ulasdeniz</dc:creator>
      <dc:date>2023-06-09T07:08:27Z</dc:date>
    </item>
  </channel>
</rss>

