Add-in logos keep popup on right-click

This widget could not be displayed.

Add-in logos keep popup on right-click

Anonymous
Not applicable

Is there a reason the logo of my Add-in keep popping out on the right click menu? It is very annoying? How do I turn it off? I am using Inventor Pro 2020 with Visual Studio 2017, the add-in is in Form structure.

 

 

0 Likes
Reply
708 Views
8 Replies
Replies (8)

Frederick_Law
Mentor
Mentor

You try to add your addin to markup menu?

Check your addin "hook" to markup menu.

0 Likes

Anonymous
Not applicable

I think it is a bug. Every time I click on the Increaser Add-In, it always show the logo on my right-click menu.

If I started using another cmd, like Constrain, the logo won't be there anymore.

0 Likes

Frederick_Law
Mentor
Mentor

Something wrong with the Increaser addin.

0 Likes

johnsonshiue
Community Manager
Community Manager

Hi! The behavior does not look right to me. Try a few things and see if there is a change in behavior.

 

1) Go to View -> Windows -> User Interface -> uncheck Marking Menu. Does it go away?

2) If it does not help, go to Tools -> Customize -> Marking Menu -> Restore All Defaults -> Apply.

If it still does not work, try resetting Inventor settings by using Inventor Reset Utilities (All Programs -> Autodesk -> Inventor 20xx -> Tools).

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Anonymous
Not applicable

so I turned off Marking Menu and got this and got it.

I think the logo is oversized and overlapped in the Marking Menu.

Is there a way to turn it off in source code?

ribbon logo 2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'ADAPTERS
            Dim Panel4 As RibbonPanel
            Panel4 = RibTab.RibbonPanels.Add("Adapters", "IntAdapters", "createAdaptorsID")

            Dim oImageAdapters As System.Drawing.Image
            oImageAdapters = System.Drawing.Bitmap.FromFile(Utilities.MasterFolder & "Image\" & "ADAPTERS.JPG")

            ' Convert the Image to a Picture.
            Dim oPictureAdapters As stdole.IPictureDisp
            oPictureAdapters = Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPictureDisp(oImageAdapters)

            ' Create the button definition object.
            CmdAdapters = m_inventorApplication.CommandManager.ControlDefinitions.AddButtonDefinition("Adaptors", _
               "Autodesk:HCo:HCo_Adapters", CommandTypesEnum.kNonShapeEditCmdType, _
               mstrAddIn, "Create and assemble Adapters fittings", "Adapters Fittings", oPictureAdapters, oPictureAdapters)

            Call Panel4.CommandControls.AddButton(CmdAdapters, True)

 

 

 

 

0 Likes

Anonymous
Not applicable

I turned off the Marking Menu, and got this:

ribbon logo 2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I think the little icon there is the one overlapped in the Marking Menu,

 

Is there away to turn if off for the Marking Menu?

 

 

'ADAPTERS
Dim Panel4 As RibbonPanel
Panel4 = RibTab.RibbonPanels.Add("Adapters", "IntAdapters", "createAdaptorsID")

Dim oImageAdapters As System.Drawing.Image
oImageAdapters = System.Drawing.Bitmap.FromFile(Utilities.MasterFolder & "Image\" & "ADAPTERS.JPG")

' Convert the Image to a Picture.
Dim oPictureAdapters As stdole.IPictureDisp
oPictureAdapters = Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPictureDisp(oImageAdapters)

' Create the button definition object.
CmdAdapters = m_inventorApplication.CommandManager.ControlDefinitions.AddButtonDefinition("Adaptors", _
"Autodesk:HCo:HCo_Adapters", CommandTypesEnum.kNonShapeEditCmdType, _
mstrAddIn, "Create and assemble Adapters fittings", "Adapters Fittings", oPictureAdapters, oPictureAdapters)

Call Panel4.CommandControls.AddButton(CmdAdapters, True)

 

0 Likes

johnsonshiue
Community Manager
Community Manager

Hi! I am not sure. I guess the icon sizing was incorrect. How did you add the icon to the custom Add-In/command?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Anonymous
Not applicable

Thank you very much for your responded.

This is an old add-in source code from someone I know.

At first, it was built in 2013 Inventor, I got update to 2018 early this year.

Honestly, I can't find the icon sizing anywhere, this is all I could find.

Is there away we can define it?

nguye486_0-1602117914279.png

Thanks!

0 Likes