Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ribbon Buttons after reload add in not visible

4 REPLIES 4
Reply
Message 1 of 5
maxstel
648 Views, 4 Replies

Ribbon Buttons after reload add in not visible

I'm  add Add button on exists inventor ribbon  tab  

After reload my add-in from Inventor buttons is invisible Smiley Sad

Please hellp me solve my problem

 

4 REPLIES 4
Message 2 of 5
Ralf_Krieg
in reply to: maxstel

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.


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 3 of 5
maxstel
in reply to: Ralf_Krieg

Thank you   additional resourse help me,    button are visible after reload addin changes positions of the  icons  Smiley Indifferent

----

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

Message 4 of 5
Ralf_Krieg
in reply to: maxstel

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...


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 5 of 5
Anonymous
in reply to: Ralf_Krieg

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report