<?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: Modify Inventor dialogs &amp;amp; context-menus in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563284#M112950</link>
    <description>&lt;P&gt;Good question. I don't see those on&amp;nbsp;CommandManager.UserInputEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll play around with OnPreSelect and OnStopPreselect. That looks like the same concept.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sharing that suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 20:52:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-21T20:52:35Z</dc:date>
    <item>
      <title>Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6002220#M112939</link>
      <description>&lt;DIV&gt;I have two questions:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(1) May I modify Inventor provided dialogs and how? For example, add an item and icon "Cut &amp;amp; New Solid" as below, which not only cuts the existing solids but also keeps the tool shape (which is sphere here) as a new solid.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG src="https://mail.google.com/mail/u/1/?ui=2&amp;amp;ik=21ee4090e7&amp;amp;view=fimg&amp;amp;th=1526b320774ecadc&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_1526b15af335b9a7&amp;amp;attbid=ANGjdJ_wcqS8bhBxMIQycAMGrKva1yB1w705Ie7i1GlHnXSSxt5V2Irc7lOygepdUc1GbFrmv4NsqLkEAgBoJH2yESVBNLk4DnHTIEnOQ1db34COgCuzcY9xb2P_Gvw&amp;amp;sz=w1124-h888&amp;amp;ats=1453497832036&amp;amp;rm=1526b320774ecadc&amp;amp;zw&amp;amp;atsh=1" border="0" alt="Inline image 2" width="562" height="444" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(2) May I add a menu item to Inventor provided context menu and how? The menu item "EM Properties" is used to show the solid's electromagnetic properties like refractive index.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG src="https://mail.google.com/mail/u/1/?ui=2&amp;amp;ik=21ee4090e7&amp;amp;view=fimg&amp;amp;th=1526b320774ecadc&amp;amp;attid=0.2&amp;amp;disp=emb&amp;amp;realattid=ii_1526b296f2e608ef&amp;amp;attbid=ANGjdJ_es6jjLa2xzOhaxOEf1cvoHxD66-vLqnq4hx60aq78iZTJEKko6cDdm69HyQ1WZfzkbVk-jPX9saWDFZLSVVIm_B29s2aoRl3z5oHZIWptwSCJvmnaUzvZ0co&amp;amp;sz=w1124-h884&amp;amp;ats=1453497832036&amp;amp;rm=1526b320774ecadc&amp;amp;zw&amp;amp;atsh=1" border="0" alt="Inline image 4" width="562" height="442" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jan 2016 21:41:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6002220#M112939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-22T21:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6004109#M112940</link>
      <description>&lt;P&gt;Hi, can you please post the images again? They won't load for us from your GMail.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 08:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6004109#M112940</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-01-25T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6004527#M112941</link>
      <description>&lt;P&gt;Images&amp;nbsp;here also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/213546i28A1A5EEACABD4A0/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="For question 1" title="For question 1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/213547i4500FCF50907D49A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="For question 2" title="For question 2" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6004527#M112941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6005055#M112942</link>
      <description>&lt;P&gt;No you can't modify the existing Inventor dialogs. But yes you can add custom items to the Context Menu. The Inventor API help has a sample program demonstrating adding a Button to the Context Menu.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/6005055#M112942</guid>
      <dc:creator>rjay75</dc:creator>
      <dc:date>2016-01-25T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7553627#M112943</link>
      <description>rjay75, I'm having trouble finding the sample you're referring to. Would you have any tips on how to find it? Thank you.</description>
      <pubDate>Fri, 17 Nov 2017 17:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7553627#M112943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T17:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7554270#M112944</link>
      <description>You need to install the ASK kit first in your programfiles folder / bin/ SDK</description>
      <pubDate>Fri, 17 Nov 2017 21:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7554270#M112944</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-17T21:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7557305#M112945</link>
      <description>&lt;P&gt;Had to dig back to old versions of the API help. But from the 2013 help here is the example code. I've test this and the code still works in 2017.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a button to the context menu API Sample&lt;/P&gt;
&lt;TABLE class="code"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="code"&gt;
&lt;PRE&gt;&lt;SPAN&gt;' Copy the following into a Module.&lt;/SPAN&gt;

Option Explicit

Public oClass1 As Class1

Sub AddToMenu()
    Set oClass1 = New Class1
    oClass1.Initialize
End Sub

&lt;SPAN&gt;'*************************************************************&lt;/SPAN&gt;
&lt;SPAN&gt;' The declarations and functions below need to be copied into&lt;/SPAN&gt;
&lt;SPAN&gt;' a class module whose name is "Class1".  The name &lt;/SPAN&gt;
&lt;SPAN&gt;' can be changed but you'll need to change the declaration in&lt;/SPAN&gt;
&lt;SPAN&gt;' the calling function "AddToMenu" to use the new name.&lt;/SPAN&gt;


Option Explicit
Private WithEvents oUserInputEvents As UserInputEvents

Public Sub Initialize()
    Set oUserInputEvents = ThisApplication.CommandManager.UserInputEvents
End Sub

Private Sub oUserInputEvents_OnContextMenu(ByVal SelectionDevice As SelectionDeviceEnum, ByVal AdditionalInfo As NameValueMap, ByVal CommandBar As CommandBar)

    On Error Resume Next
    
    &lt;SPAN&gt;' Check if the context menu has the 'Home View' (formerly 'Isometric View') command&lt;/SPAN&gt;
    Dim oCmdBarControl As CommandBarControl
    Set oCmdBarControl = CommandBar.Controls.Item("AppIsometricViewCmd")
    
    If Not oCmdBarControl Is Nothing Then
        
        Dim oCtrlDef As ControlDefinition
        Set oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomAllCmd")
        
        &lt;SPAN&gt;' Add the "Zoom All" command before the home view command&lt;/SPAN&gt;
        Call CommandBar.Controls.AddButton(oCtrlDef, oCmdBarControl.index)
        
    End If
    
End Sub&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still use this code in software using C#.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Summarizing what it does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a button definition. Add it to the ControlDefinitions of the Application.CommandManager object. Add a event handler on the button class as normal. Add an event handler to the CommandManager.UserInputs.OnContextMenu event. In that event handler determine if it's the appropriate context to show your command. IE... look at any selected objects etc... If so add your button to the list if it's not there. If not and it's present remove your button. The definition still exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some C# code I use to achieve this. I create the command definition as normal, but use the event to conditionally add it to the context menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snippet&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&amp;nbsp;UserInputEvents_OnContextMenu&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SelectionDeviceEnum&lt;/SPAN&gt;&amp;nbsp;SelectionDevice,&amp;nbsp;&lt;SPAN&gt;NameValueMap&lt;/SPAN&gt;&amp;nbsp;AdditionalInfo,&amp;nbsp;&lt;SPAN&gt;CommandBar&lt;/SPAN&gt;&amp;nbsp;CommandBar&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;if&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;appInventor&lt;SPAN&gt;.&lt;/SPAN&gt;ActiveDocument&amp;nbsp;&lt;SPAN&gt;==&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;return&lt;/SPAN&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CommandBarControl&lt;/SPAN&gt;&amp;nbsp;c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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 05:07:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7557305#M112945</guid>
      <dc:creator>rjay75</dc:creator>
      <dc:date>2017-11-20T05:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7559447#M112946</link>
      <description>&lt;P&gt;Thank you. Now I'm looking to find out which component instance was hovered over when the user did the right click which triggers this event handler. The AdditionalInfo NameValueMap is always null from what I'm seeing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part in an assembly does get highlighted when I right click on it but my document.HighlightSets.Count = 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to find out what the user intended context was when they did the right click?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:06:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7559447#M112946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T18:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7559816#M112947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this piece of code will help you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; Dim oselectionSet As SelectSet = m_inventorApplication.ActiveDocument.SelectSet
                            Dim oSelectedCompOcc As ComponentOccurrence = oselectionSet.Item(1)
                            &lt;BR /&gt;dim oDoc as document = oSelectedCompOcc.Definition.Document&lt;BR /&gt;&lt;BR /&gt;MsgBox(oDoc.fullfilename)&lt;BR /&gt;
                           &lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Nov 2017 19:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7559816#M112947</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-20T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563092#M112948</link>
      <description>&lt;P&gt;Thanks. That's what I went with yes but it's not always what they right clicked on to open the menu. If you already had somethings selected and you then right click on another part in the assembly the selection set has the previously selected parts, not the one that was just right clicked on. This is why UI context is usually passed to this sort of event... to give specific context for the user interaction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563092#M112948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563166#M112949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would the mouse click event bring something?&lt;/P&gt;&lt;P&gt;Or mousehover?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563166#M112949</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-21T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563284#M112950</link>
      <description>&lt;P&gt;Good question. I don't see those on&amp;nbsp;CommandManager.UserInputEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll play around with OnPreSelect and OnStopPreselect. That looks like the same concept.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sharing that suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:52:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563284#M112950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T20:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563291#M112951</link>
      <description>&lt;P&gt;Hello, the event that would supply that information is the UserInputEvents.OnPreSelect event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:55:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563291#M112951</guid>
      <dc:creator>rjay75</dc:creator>
      <dc:date>2017-11-21T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563294#M112952</link>
      <description>&lt;P&gt;I will take a look at this soon ok?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7563294#M112952</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-21T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Inventor dialogs &amp; context-menus</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7565008#M112953</link>
      <description>&lt;P&gt;Yep, that's working for me. I just capture the info and then clear it when the OnStopPreselect fires. If the context menu opens up before OnStopPreselect then I have what I need so that works good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:53:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-inventor-dialogs-amp-context-menus/m-p/7565008#M112953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T12:53:01Z</dc:date>
    </item>
  </channel>
</rss>

