<?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: Check In dialog box: Need to have OK button selected as default - iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6861087#M69991</link>
    <description>&lt;P&gt;If you add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style=""&gt;System&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Windows&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Forms&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;SendKeys&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Sendwait&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;Chr&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;9&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;vbCrLf&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It will complete the check in, but if you want a comment you either have to allow them to type the comment and hit tab and enter, or you could hard code it like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style=""&gt;System&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Windows&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Forms&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;SendKeys&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Sendwait&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;"&lt;/SPAN&gt;&lt;SPAN style=""&gt;comment&lt;/SPAN&gt;&lt;SPAN style=""&gt;"&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;Chr&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;9&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;vbCrLf&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Or get it as a string from somewhere else.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 21:28:09 GMT</pubDate>
    <dc:creator>Ktomberlin</dc:creator>
    <dc:date>2017-02-07T21:28:09Z</dc:date>
    <item>
      <title>Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6860489#M69978</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Check In - Dialogbox.JPG" style="width: 452px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/320172iDE829C1182A44C88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Check In - Dialogbox.JPG" alt="Check In - Dialogbox.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;iLogic code request!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, OK is not selected. We handle so many documents that we never input data for comments. Therefore we would like OK button is already selected so that by pressing enter (like the dialog box for Save) the document will be checked in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request help. Currently, I use the code shown below:&lt;/P&gt;
&lt;PRE&gt;Sub Main()
oCheckIN()

End Sub

Sub oCheckIN()

ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute
iLogicVb.UpdateWhenDone=True

'ThisDoc.Document.Save()
'
'ThisApplication.ActiveView.Fit
ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6860489#M69978</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2017-02-07T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6860499#M69980</link>
      <description>&lt;P&gt;I guess this should be the default from within Inventor with&amp;nbsp;"Comments" can still be&amp;nbsp;typed in optionally.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6860499#M69980</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2017-02-07T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6861087#M69991</link>
      <description>&lt;P&gt;If you add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style=""&gt;System&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Windows&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Forms&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;SendKeys&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Sendwait&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;Chr&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;9&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;vbCrLf&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It will complete the check in, but if you want a comment you either have to allow them to type the comment and hit tab and enter, or you could hard code it like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style=""&gt;System&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Windows&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Forms&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;SendKeys&lt;/SPAN&gt;&lt;SPAN style=""&gt;.&lt;/SPAN&gt;&lt;SPAN style=""&gt;Sendwait&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;"&lt;/SPAN&gt;&lt;SPAN style=""&gt;comment&lt;/SPAN&gt;&lt;SPAN style=""&gt;"&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;Chr&lt;/SPAN&gt;&lt;SPAN style=""&gt;(&lt;/SPAN&gt;&lt;SPAN style=""&gt;9&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt; &lt;SPAN style=""&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN style=""&gt;vbCrLf&lt;/SPAN&gt;&lt;SPAN style=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Or get it as a string from somewhere else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 21:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6861087#M69991</guid>
      <dc:creator>Ktomberlin</dc:creator>
      <dc:date>2017-02-07T21:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6861807#M70005</link>
      <description>&lt;P&gt;Thanks for the reply. I appreciate the coding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'
'ThisApplication.ActiveView.Fit
ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute

'Check In dialogbox
ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

'To send by pressing ENTER button.
System.Windows.Forms.SendKeys.Sendwait("comment" &amp;amp; Chr(9) &amp;amp; vbCrLf)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with the coding as shown above: I still get it as shown below.&amp;nbsp;Basically, I need to execute check-In by pressing the ENTER button. It makes faster checking the documents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Check In Options.GIF" style="width: 461px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/320370i5529BFB088C47948/image-size/large?v=v2&amp;amp;px=999" role="button" title="Check In Options.GIF" alt="Check In Options.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request to fix - if you don't mind.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 06:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6861807#M70005</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2017-02-08T06:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6862399#M70016</link>
      <description>&lt;P&gt;What version of vault do you have? it looks like you need to have another tab to get to the "enter"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Windows.Forms.SendKeys.Sendwait(Chr(9) &amp;amp; "Checked In using Ilogic"&amp;nbsp;&amp;amp; Char(9) &amp;amp; vbCrLf)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6862399#M70016</guid>
      <dc:creator>Ktomberlin</dc:creator>
      <dc:date>2017-02-08T12:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6865039#M70043</link>
      <description>&lt;P&gt;Thanks for the reply. I do with Vault Basic - 2015 and&amp;nbsp;Autodesk Inventor Professional - 2015&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, it des not check in when the&amp;nbsp;ENTER button is pressed. The cursor keeps blinking in the Checking dialog box white text box. FYI, please.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 06:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6865039#M70043</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2017-02-09T06:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6865654#M70052</link>
      <description>&lt;P&gt;If you cut and paste my last post there was a typo in it, I had an "a" in the second Chr(9).&amp;nbsp; Its fixed below. The Chr(9) is = to tab so if your still only in the comments add another "&amp;amp; Chr(9)".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Windows.Forms.SendKeys.Sendwait(Chr(9) &amp;amp; "Checked In using Ilogic"&amp;nbsp;&amp;amp; Chr(9) &amp;amp; vbCrLf)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 11:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6865654#M70052</guid>
      <dc:creator>Ktomberlin</dc:creator>
      <dc:date>2017-02-09T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6871964#M70140</link>
      <description>&lt;P&gt;I tried several options. But, still I could not get this around. I feel like you are right: it needs a couple of TABS. So,&amp;nbsp;the right&amp;nbsp;combination of Chr(9)s is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mind fixing the code below (it looks weired, because I tried several options hopelessly)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute
ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(True)

System.Windows.Forms.SendKeys.Sendwait("comment" &amp;amp; Chr(9) &amp;amp; vbCrLf _
&amp;amp; vbCrLf &amp;amp; "comment" &amp;amp; Chr(9) _
&amp;amp; vbCrLf &amp;amp; "comment" &amp;amp; Chr(9) _
&amp;amp; vbCrLf &amp;amp; "" _
&amp;amp; vbCrLf &amp;amp; "comment" &amp;amp; Chr(9) &amp;amp; vbCrLf)&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 08:46:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/6871964#M70140</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2017-02-12T08:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Check In dialog box: Need to have OK button selected as default - iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/9805895#M116976</link>
      <description>&lt;P&gt;I know this thread is old but this is what I have so far and it works well but I cannot get it to work for different types of files. I want this to run through everything I have open be it drawings, assemblies, and parts and check them all in. Does anyone know how to make this happen?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'comment prompt
CommentBox = InputBox("Leave a Vault check-in comment bellow", "Vault Check-in Comment", "Default Entry")

If CommentBox = ok Then
	
	Return
	
Else
	
	Dim oDoc As Inventor.Document
	For Each oDoc In ThisApplication.Documents.VisibleDocuments
	
				oDoc.Save
				'Check In dialogbox
				ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)
				'inputs user comment and selects ok
				System.Windows.Forms.SendKeys.SendWait(CommentBox &amp;amp; Chr(9))'&amp;amp; vbCrLf
		Next 
		ThisApplication.CommandManager.ControlDefinitions.Item("AppFileCloseCmd").Execute

End If

MessageBox.Show("Vault Check-in Compleate", "Vault")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Oct 2020 21:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-in-dialog-box-need-to-have-ok-button-selected-as-default/m-p/9805895#M116976</guid>
      <dc:creator>bsnyderACLUW</dc:creator>
      <dc:date>2020-10-15T21:46:56Z</dc:date>
    </item>
  </channel>
</rss>

