<?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: How to capture radial marking menu command? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4832037#M126075</link>
    <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the radial menu capture to work. &amp;nbsp;For your information I had to modify your code slightly as I found the 'InternalName' for the radial buttons is of the form 'AppNGX_command rather than 'AppContextual_command'. &amp;nbsp;By altering&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If RadialMenu.EastControl.InternalName = _nativeButtonDef.InternalName Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Mid(RadialMenu.EastControl.InternalName, InStr(RadialMenu.EastControl.InternalName, "_")) = Mid(_nativeButtonDef.InternalName, InStr(_nativeButtonDef.InternalName, "_")) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;everything works fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2014 09:28:56 GMT</pubDate>
    <dc:creator>rogmitch</dc:creator>
    <dc:date>2014-02-22T09:28:56Z</dc:date>
    <item>
      <title>How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4817859#M126068</link>
      <description>&lt;P&gt;I am trying to capture a command invoked by a radial menu control in VB.Net e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RadialMenu.WestControl = _Application.CommandManager.ControlDefinitions("AppContextual_CancelCmd")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;UserInputEvents.OnActivateCommand and this captures other events OK &amp;nbsp;but does not fire&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;if any of the radial menu controls are clicked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know a way around this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger Mitchell&lt;/P&gt;&lt;P&gt;IV 2014 Prof SP1 VS 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2014 09:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4817859#M126068</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-15T09:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4819819#M126069</link>
      <description>&lt;P&gt;Hi Roger,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a similar approach than the one exposed in that blog post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2014/02/replacing-a-native-inventor-button-by-a-custom-one-updated.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2014/02/replacing-a-native-inventor-button-by-a-custom-one-updated.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create your own control definition, replace the radial menu button by your own and invoke the native Execute when the button gets clicked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 10:05:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4819819#M126069</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-02-17T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4820399#M126070</link>
      <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the help- it is much appreciated. &amp;nbsp;I will implement the custom button as you suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 15:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4820399#M126070</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-17T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4828865#M126071</link>
      <description>&lt;P&gt;Hi Phillipe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I introduced your '&lt;SPAN&gt;AdnCustomReplacementCmd' class into my addin and it works great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I want to capture, for example, the Cancel command on a radial menu I removed the StandardIcon and LargeIcon parameters from the button definition otherwise I get an exception. &amp;nbsp;So far so good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem is that the "AppContextual_CancelCmd" &amp;nbsp;is ignored in the&amp;nbsp;&lt;SPAN&gt;ReplaceNativeControls(). &amp;nbsp;From what I can tell the&amp;nbsp;&lt;SPAN&gt;UserInterfaceManager.AllReferencedControls is for only for the ribbon interface. Unfortunately, I have been unable to find another way to reference the radial control and subsitute the button.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger Mitchell&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 23:17:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4828865#M126071</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-20T23:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829503#M126072</link>
      <description>&lt;P&gt;The radial and linear menus are populated at runtime, so it's not possible to find references for all buttons during initialization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I modified the blog sample so it works for radial menu now, although it doesn't handle the case where you would like to replace a button in a radial sub-menu. I'm not sure why the icons do not work, but you can definitely use your own, as illustrated in the following context menu sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2012/05/customizing-radialmarkingmenu-and-linearmarkingmenu-with-inventor-api.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2012/05/customizing-radialmarkingmenu-and-linearmarkingmenu-with-inventor-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 07:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829503#M126072</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-02-21T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829797#M126073</link>
      <description>&lt;P&gt;Hi Phillipe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to update the class. &amp;nbsp;It is always good to learn new things and as an addin newbie I find the blogs paticularly helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try and implement the revised code over the weekend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 10:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829797#M126073</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-21T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829803#M126074</link>
      <description>&lt;P&gt;Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oops - sorry about the spellling of your name. &amp;nbsp;Somehow I managed to garble it mid-topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 10:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4829803#M126074</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-21T10:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4832037#M126075</link>
      <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the radial menu capture to work. &amp;nbsp;For your information I had to modify your code slightly as I found the 'InternalName' for the radial buttons is of the form 'AppNGX_command rather than 'AppContextual_command'. &amp;nbsp;By altering&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If RadialMenu.EastControl.InternalName = _nativeButtonDef.InternalName Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Mid(RadialMenu.EastControl.InternalName, InStr(RadialMenu.EastControl.InternalName, "_")) = Mid(_nativeButtonDef.InternalName, InStr(_nativeButtonDef.InternalName, "_")) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;everything works fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2014 09:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4832037#M126075</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-22T09:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4832425#M126076</link>
      <description>&lt;P&gt;Addendum:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To prevent an exception if a radial command is not an 'AppNGX_command' use, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If TypeOf (RadialMenu.WestControl) Is ControlDefinition Then&lt;BR /&gt;If RadialMenu.WestControl.InternalName.ToString.Contains("_") Then&lt;BR /&gt;If Mid(RadialMenu.WestControl.InternalName, InStr(RadialMenu.WestControl.InternalName, "_")) = Mid(_nativeButtonDef.InternalName, InStr(_nativeButtonDef.InternalName, "_")) Then&lt;BR /&gt;RadialMenu.WestControl = _customButtonDefinition&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2014 14:04:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/4832425#M126076</guid>
      <dc:creator>rogmitch</dc:creator>
      <dc:date>2014-02-22T14:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5622167#M126077</link>
      <description>&lt;P&gt;I found this very interesting, as the&amp;nbsp;RadialMarkingMenu is populated on the fly, would it be possible to cature the name of any command that is run, for example when I right click in a new Part I get the following commands available: Fillet, Extrude, Revolve, Hole, New Sketch, Work Plane, Undo &amp;amp; Measure. If when one fo these was clicked I wanted a System.Windows.Forms.MessageBox to display this command name text string, would it be possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use the following event to capture the loading of the RadialMarkingMenu:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UserInputEvents inpEvents = inventorApplication.CommandManager.UserInputEvents;&lt;/P&gt;&lt;P&gt;inpEvents.OnRadialMarkingMenu += new Inventor.UserInputEventsSink_OnRadialMarkingMenuEventHandler(UIEvents_OnRadialMarkingMenu);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I cant seem to find an event handler to handle the actual clicking on the Marking Menu once it is on display in the interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any direction would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 23:01:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5622167#M126077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5623346#M126078</link>
      <description>Sorry,&lt;BR /&gt;I read it back and I see that recreating the commands with an event handler in them is the solution, are there any dangers in this?</description>
      <pubDate>Wed, 06 May 2015 18:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5623346#M126078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T18:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture radial marking menu command?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5645485#M126079</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your question is exactly what we've been answering in that forum thread. What do you mean by danger...? No it's a safe workaround and I don't see any easier way to achieve it. Nobody will get hurt, I'm pretty sure about that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 21:48:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-capture-radial-marking-menu-command/m-p/5645485#M126079</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2015-05-20T21:48:26Z</dc:date>
    </item>
  </channel>
</rss>

