I'm add Add button on exists inventor ribbon tab
After reload my add-in from Inventor buttons is invisible
Please hellp me solve my problem
Hello
Is the button visible again after restart Inventor? If so, I believe a reload don't destroy your button definition and somewhere there in your code raises an exception. The creation of new button fails, cause the definition already exists.
Take an additional look at this paper at page 13.
Thank you additional resourse help me, button are visible after reload addin changes positions of the icons
----
newpanel = pTab.RibbonPanels.Add("menu1", "id_PanelC_TSKD", m_ClientID)
Dim icon1 As System.Drawing.Icon = My.Resources.Resource1.mater
largePicture1 = Microsoft.VisualBasic.Compatibility.VB6.IconToIPicture(icon1)
m_ButtonDef1 = controlDefs.AddButtonDefinition("text1", "Button1", CommandTypesEnum.kNonShapeEditCmdType, m_ClientID, comment", "comment1.", Nothing, largePicture1)
Dim icon2 As System.Drawing.Icon = My.Resources.Resource1.pokr
largePicture2 = Microsoft.VisualBasic.Compatibility.VB6.IconToIPicture(icon2)
m_ButtonDef2 = controlDefs.AddButtonDefinition("text2" ", "Button2", CommandTypesEnum.kNonShapeEditCmdType, m_ClientID, "comment", "comm2.", Nothing, largePicture2)
newpanel.CommandControls.AddButton(m_ButtonDef1, True)
newpanel.CommandControls.AddButton(m_ButtonDef2, True)
-------
After restart Inventor icons loads right
Hi
The problem is known, but AFAIK not solved. See http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/User-unload-of-AddIn-mixes-Icons-every...
Has this issue been resolved? It appears to be my issued where the buttons won't reload after a manual reload of the add-in