<?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: Disabling the spacebar &amp;quot;repeat last command&amp;quot; function in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3551024#M143013</link>
    <description>&lt;P&gt;Hi krieq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you for your suggestion. I did try disabling the user intervention but the problem is if I diable user intervenation user is not able to type in the text for renaming the tree node. My requirement is allow user to enter node name with spaces and disable the last repeat command dialog to open. I thought there should be an option to remove these short cut keys but I could not find any in "Tools -- Cutomize" I could not find one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;The repeat last command internal command name is "AppRepeatCmd" I also tried getting the control defination (ControlDefinition) for this command and set the disable flag to true and I can see that in the contextual menu repeat last command is disabled but when I hit space/enter key it still opens the command dialog, so no luck.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any other suggestions on hot to supress the event which triggers last executed command?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2012 00:21:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-25T00:21:20Z</dc:date>
    <item>
      <title>Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/2720077#M143009</link>
      <description>&lt;P&gt;Since Inventor 2010, the spacebar has the functionality of repeating the last command. We have an add-in that requires typing&amp;nbsp; a short phrase. (You can see where this is headed)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever you use the spacebar to seperate the words in the phrase, a new addin form opens in front of the old one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This add-in is employing the WordWrapper code that Brian submitted some time ago to clear up a similiar issue when you used the Enter key, but the spacebar problem persists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to disable this funtion? Or work around it?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 13:24:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/2720077#M143009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-17T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3547150#M143010</link>
      <description>&lt;P&gt;Hi tclayton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find out solution for this problem?&lt;/P&gt;&lt;P&gt;I am having similar problem with my addin in Inventor 2012.&lt;/P&gt;&lt;P&gt;Please suggest if you found a way to disable repeat last command option.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2012 00:33:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3547150#M143010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-21T00:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3547616#M143011</link>
      <description>&lt;P&gt;Sadly, no.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2012 18:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3547616#M143011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-22T18:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3550694#M143012</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure, but have you tried to disable userinteraction in Inventor while your form is open? If userinteraction is diabled, Inventor shouldn't react on anything the user do (mouseclick, shortcuts and hopefully spacebar).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;myInventor.UserInterfaceManager.UserInteractionDisabled = True&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Be sure to enable Interaction on every possible way your user close the form or your Inventor looks like a screenshot. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 19:51:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3550694#M143012</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2012-07-24T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3551024#M143013</link>
      <description>&lt;P&gt;Hi krieq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you for your suggestion. I did try disabling the user intervention but the problem is if I diable user intervenation user is not able to type in the text for renaming the tree node. My requirement is allow user to enter node name with spaces and disable the last repeat command dialog to open. I thought there should be an option to remove these short cut keys but I could not find any in "Tools -- Cutomize" I could not find one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;The repeat last command internal command name is "AppRepeatCmd" I also tried getting the control defination (ControlDefinition) for this command and set the disable flag to true and I can see that in the contextual menu repeat last command is disabled but when I hit space/enter key it still opens the command dialog, so no luck.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any other suggestions on hot to supress the event which triggers last executed command?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 00:21:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3551024#M143013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-25T00:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3570352#M143014</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using a modeless dialog? That's where the user is trying to enter a text that includes a space?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about using a modal dialog instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you could try setting Inventor as the parent of your modeless window:&lt;/P&gt;
&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#Region "hWnd Wrapper Class"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' This class is used to wrap a Win32 hWnd as a .Net IWind32Window class.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' This is primarily used for parenting a dialog to the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Inventor&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;window.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' For example:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;' myForm.Show(New WindowWrapper(m_inventorApplication.MainFrameHWND))&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Class WindowWrapper&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Implements System.Windows.Forms.IWin32Window&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub New(ByVal handle As IntPtr)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_hwnd = handle&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public ReadOnly Property Handle() As IntPtr _&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Implements System.Windows.Forms.IWin32Window.Handle&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Get&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Return _hwnd&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Get&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Property&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private _hwnd As IntPtr&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Class&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#End Region&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;______________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174DF"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:57:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3570352#M143014</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2012-08-08T16:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3570408#M143015</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply. Actually I am not using any dialog, This is rename command where user right mouse click on tree node and click on rename and enter the name for node. While entering the name for node if user hit space last command dialog appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to avoid the problem temporarily by InteractionEventsObject::Start() before starting rename command and InteractionEventsObject::Stop() once rename operation is complete. This is not an ideal solution because when I do this after entering the name if user hit the 'Enter' key it does not complete the rename operation.&lt;/P&gt;&lt;P&gt;I mean user has to click on some where in graphics screen to complete the rename operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 17:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3570408#M143015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T17:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3579480#M143016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which Inventor version are you using? OS version?&lt;/P&gt;
&lt;P&gt;Could you please provide the exact steps to reproduce the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked in Inventor 2011 and when I selected a part occurrence in the browser tree and then clicked on it again to change the name, the space bar did not start the last command. If I clicked in the drawing area and then pressed space bar then the last command got repeated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:53:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/3579480#M143016</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2012-08-15T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the spacebar "repeat last command" function</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/12199513#M143017</link>
      <description>&lt;P&gt;Thank you very much, Adam, Legend! It works. I was so frustrated.&lt;/P&gt;&lt;P&gt;I have been keeping the CLASS in the code, but never used until have the same problem as Tclayton's.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 11:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/disabling-the-spacebar-quot-repeat-last-command-quot-function/m-p/12199513#M143017</guid>
      <dc:creator>Jusdoo</dc:creator>
      <dc:date>2023-08-27T11:04:14Z</dc:date>
    </item>
  </channel>
</rss>

