<?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 Enter command in iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5470831#M53612</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;when we start new dwg it shows listbox with client names. Picking desired one it fill title block with client name. If someone start and hit enter key it just skip rule and will not fill title block with client.&lt;/P&gt;&lt;P&gt;My question is : Is it possible to add line of code(s) if enter key is pressed to do nothing until pick something from list, or just to close file to teach people to not skip nothing.&lt;/P&gt;&lt;P&gt;Again, Big thanks for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2015 14:54:21 GMT</pubDate>
    <dc:creator>GosponZ</dc:creator>
    <dc:date>2015-01-15T14:54:21Z</dc:date>
    <item>
      <title>Enter command in iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5470831#M53612</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;when we start new dwg it shows listbox with client names. Picking desired one it fill title block with client name. If someone start and hit enter key it just skip rule and will not fill title block with client.&lt;/P&gt;&lt;P&gt;My question is : Is it possible to add line of code(s) if enter key is pressed to do nothing until pick something from list, or just to close file to teach people to not skip nothing.&lt;/P&gt;&lt;P&gt;Again, Big thanks for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:54:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5470831#M53612</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2015-01-15T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enter command in iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5471135#M53617</link>
      <description>&lt;P&gt;hi Misterzs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know if is possible for the enter key but the box who appear when you create a new drawing is a rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my poor english &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5471135#M53617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-15T17:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enter command in iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5471182#M53618</link>
      <description>&lt;P&gt;&lt;FONT size="3" face="arial,helvetica,sans-serif"&gt;Yes it is rule, very simple and very handy but some people ignore and hit enter and rule skip.Unfortunately.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 18:09:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5471182#M53618</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2015-01-15T18:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enter command in iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5472354#M53637</link>
      <description>&lt;P&gt;Something like this should work :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Dim vendorProperty As String
vendorProperty = ""

Dim vendorList As New ArrayList 
vendorList.add("Test1")
vendorList.add("Test2")
vendorList.add("Test3")

While vendorProperty = "" 
	vendorProperty = InputListBox("Prompt", vendorList, "", Title := "New Title Here", ListName := "List Name Here")
End While

iProperties.Value("Project", "Vendor") = vendorProperty


''' You could even do something like : 

'If iProperties.Value("Project", "Vendor") = "" Then 
'	While vendorProperty = ""
'		vendorProperty = InputListBox.......
'	End While
'	iProperties.Value("Project", "Vendor") = vendorProperty
'End If

''' that way, if the iProperty Value is already filled out, you won't 
''' even see the dialog to select a new one. 
''' It might not be useful, but I figured I would give an example.


&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 15:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5472354#M53637</guid>
      <dc:creator>MegaJerk</dc:creator>
      <dc:date>2015-01-16T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enter command in iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5479830#M53745</link>
      <description>&lt;P&gt;Thanks MegaJerk,&lt;/P&gt;&lt;P&gt;i end up with this code. Required excel sheet. On opening new dwg show up input box with clients. If hit enter won't go away. In my case Client is maped into Title block and will be written on&amp;nbsp; save. Hope this may help to others.&lt;/P&gt;&lt;PRE&gt;'Open list of our Clients
GoExcel.Open("C:\Customer.xlsx", "Sheet1")
lastUsedRow = 2
'set the list to be read from the XLS file
Dim myArrayList As New ArrayList
'add the values from the Excel file to an array list
While GoExcel.CellValue("A" &amp;amp; lastUsedRow) &amp;lt;&amp;gt; ""
		myarraylist.add(GoExcel.CellValue("A" &amp;amp; lastUsedRow))
	lastUsedRow = lastUsedRow + 1
End While

If iProperties.Value("Summary", "Company") = "" Then 
	While CompanyProperty = ""
		CompanyProperty = InputListBox("Select Customer from list", myArrayList, myArrayList, Title := "iLogic", ListName := "Customer")

	End While
	iProperties.Value("Summary", "Company") = CompanyProperty
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 12:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/enter-command-in-ilogic/m-p/5479830#M53745</guid>
      <dc:creator>GosponZ</dc:creator>
      <dc:date>2015-01-23T12:37:50Z</dc:date>
    </item>
  </channel>
</rss>

