<?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 To achieve key board TAB key functionality in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103994#M86021</link>
    <description>&lt;P&gt;Here's a usage example from an addin written by myself &amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3801119"&gt;@MrSmithtastic&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub m_UserInputEvents_OnActivateCommand(CommandName As String, Context As NameValueMap)
            If Not AddinGlobal.InventorApp.ActiveDocument Is Nothing Then
                If (AddinGlobal.InventorApp.ActiveDocument.DocumentType = DocumentTypeEnum.kDrawingDocumentObject) Then
                    If CommandName = "VaultCheckinTop" Or CommandName = "VaultCheckin" Then
                        DocumentToPulliPropValuesFrom = AddinGlobal.InventorApp.ActiveDocument
                        If iProperties.GetorSetStandardiProperty(AddinGlobal.InventorApp.ActiveDocument, PropertiesForDesignTrackingPropertiesEnum.kDrawingDeferUpdateDesignTrackingProperties, "", "") = False Then
                            WhatToDo = MsgBox("Updates are not Deferred, do you want to Defer them?", vbYesNo, "Deferred Checker")
                            If WhatToDo = vbYes Then
                                AddinGlobal.InventorApp.ActiveDocument.DrawingSettings.DeferUpdates = True
                                myiPropsForm.Label8.ForeColor = Drawing.Color.Red
                                myiPropsForm.Label8.Text = "Drawing Updates Deferred"
                                UpdateStatusBar("Updates are now Deferred")
                                MsgBox("Updates are now Deferred, continue Checkin", vbOKOnly, "Deferred Checker")
                            Else
                                'Do Nothing
                            End If
                        End If
                    End If
                End If
            End If
        End Sub&lt;/PRE&gt;&lt;P&gt;^ doesn't deal with setting up the Events listener or anything, but if you want to dig into it a little deeper, then the repo is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AlexFielder/MyFirstInventorAddin" target="_blank"&gt;https://github.com/AlexFielder/MyFirstInventorAddin&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 09:04:49 GMT</pubDate>
    <dc:creator>AlexFielder</dc:creator>
    <dc:date>2018-07-02T09:04:49Z</dc:date>
    <item>
      <title>iLogic to To achieve key board TAB key functionality</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103644#M86011</link>
      <description>&lt;P&gt;I do with very large (huge) models and the drawings are in couple of hundred sometimes. Mostly, check in is done without any data in the text box for comments. So need to have the OK button activated, so that (having opened so many drawings)&amp;nbsp; hit Check In first and then press ENTER will check the document in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to fix the following to achieve the keyboard functionality.&lt;/P&gt;&lt;PRE&gt;ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(True)&lt;/PRE&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="TAB.png" style="width: 545px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/518308i6DE55A62EBCA5232/image-size/large?v=v2&amp;amp;px=999" role="button" title="TAB.png" alt="TAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text Box.png" style="width: 460px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/518309i3CA9550BE5C68344/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text Box.png" alt="Text Box.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 05:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103644#M86011</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2018-07-02T05:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to To achieve key board TAB key functionality</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103699#M86013</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TAB.png" style="width: 615px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/518318i4024315DECD909D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="TAB.png" alt="TAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 06:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103699#M86013</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2018-07-02T06:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to To achieve key board TAB key functionality</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103970#M86017</link>
      <description>&lt;P&gt;Autohotkeys can do what you want without iLogic, here's an example from an old .ahk file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

; should disable the F1 key unless it's pressed in conjunction with the shift key.
#IfWinActive AutoCAD
+F1::F1 ; (Shift + F1 = F1)
F1::Escape ; (F1 = Escape)
ScrollLock::Escape ; (ScrollLock = Escape)
PrintScreen::Shift ; (Printscreen = Shift)
#IfWinActive
#IfWinActive Autodesk
+F1::F1 ; (Shift + F1 = F1)
F1::Escape ; (F1 = Escape)
#IfWinActive

;should provide today's date in YYYY-MM-DD format:
+^d::
FormatTime, CurrentDateTime,, ShortDate
Send %CurrentDateTime%
return

;should allow us to insert something from the clipboard inside Inventor
#IfWinActive Autodesk Inventor
+^m::Send Master-{ENTER}
return

#IfWinActive Parameters
+^m::Send Master{ENTER}
return&lt;/PRE&gt;&lt;P&gt;You could copy the "IfWinActive Autodesk Inventor" section and modify it to "IfWinActive Blah Blah" and have it send {TAB}{ENTER} or whatever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FWIW: I'm not aware of any method using iLogic that can interrogate the active window, or wait for a built-in command to fire (unless the events system has been sufficiently improved of course?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am naturally happy to be corrected on the above statement!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only other alternative is a .NET addin - wherein you can wait for the "UserInputEvents.OnActivateCommand" event to fire, check what the command name is and then maybe use sendkeys to send a "TAB" to the&amp;nbsp;Vault&amp;nbsp;dialogue.&lt;/P&gt;&lt;P&gt;Here's a useful blog post on this:&amp;nbsp;&lt;A href="http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this shows it in action:&amp;nbsp;&lt;A href="http://adndevblog.typepad.com/manufacturing/2012/05/know-every-execution-command-name-within-the-current-session.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2012/05/know-every-execution-command-name-within-the-current-session.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bigger question I have is why do you want your users to simply "click-through" these Vault logins? The biggest bonus of using Vault (from my experience) is that it gives you (when you need it) an audit trail of who has done what, when and why; encouraging lots of blank, blank, blank in the file history diminishes the usefulness of the system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just my $0.02,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 08:53:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103970#M86017</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2018-07-02T08:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to To achieve key board TAB key functionality</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103993#M86020</link>
      <description>Please read this first:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/use-inventor-vault-add-in-through-inventor-api/m-p/6041107" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/use-inventor-vault-add-in-through-inventor-api/m-p/6041107&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;herewith you can also hide the dialog.&lt;BR /&gt;let me know if you need further assistance..&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2018 09:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103993#M86020</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-07-02T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to To achieve key board TAB key functionality</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103994#M86021</link>
      <description>&lt;P&gt;Here's a usage example from an addin written by myself &amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3801119"&gt;@MrSmithtastic&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub m_UserInputEvents_OnActivateCommand(CommandName As String, Context As NameValueMap)
            If Not AddinGlobal.InventorApp.ActiveDocument Is Nothing Then
                If (AddinGlobal.InventorApp.ActiveDocument.DocumentType = DocumentTypeEnum.kDrawingDocumentObject) Then
                    If CommandName = "VaultCheckinTop" Or CommandName = "VaultCheckin" Then
                        DocumentToPulliPropValuesFrom = AddinGlobal.InventorApp.ActiveDocument
                        If iProperties.GetorSetStandardiProperty(AddinGlobal.InventorApp.ActiveDocument, PropertiesForDesignTrackingPropertiesEnum.kDrawingDeferUpdateDesignTrackingProperties, "", "") = False Then
                            WhatToDo = MsgBox("Updates are not Deferred, do you want to Defer them?", vbYesNo, "Deferred Checker")
                            If WhatToDo = vbYes Then
                                AddinGlobal.InventorApp.ActiveDocument.DrawingSettings.DeferUpdates = True
                                myiPropsForm.Label8.ForeColor = Drawing.Color.Red
                                myiPropsForm.Label8.Text = "Drawing Updates Deferred"
                                UpdateStatusBar("Updates are now Deferred")
                                MsgBox("Updates are now Deferred, continue Checkin", vbOKOnly, "Deferred Checker")
                            Else
                                'Do Nothing
                            End If
                        End If
                    End If
                End If
            End If
        End Sub&lt;/PRE&gt;&lt;P&gt;^ doesn't deal with setting up the Events listener or anything, but if you want to dig into it a little deeper, then the repo is here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AlexFielder/MyFirstInventorAddin" target="_blank"&gt;https://github.com/AlexFielder/MyFirstInventorAddin&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 09:04:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-to-achieve-key-board-tab-key-functionality/m-p/8103994#M86021</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2018-07-02T09:04:49Z</dc:date>
    </item>
  </channel>
</rss>

