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: 

Creating Custom Icons in the Autodesk Inventor 2011 Get started Tab

1 REPLY 1
Reply
Message 1 of 2
CADProfessor
1412 Views, 1 Reply

Creating Custom Icons in the Autodesk Inventor 2011 Get started Tab

Hi, 

 

I would be happy to know how to add a custom icon with link and image ; similar to Wiki Icon in Autodesk Inventor in the Get Started Tab and in the community panel

 

I would be happy to add a facebook Icon within the community panel any one can you help me in getting the right code for this  

Sunith Babu L
http://blog.autodeskhelp.com/
************************************************
Please mark this response as "Accept as Solution" if it answers your question.
************************************************
1 REPLY 1
Message 2 of 2
YuhanZhang
in reply to: CADProfessor

Below VBA code sample demonstrates how to add a button onto ribbon with icon, but you may want to create an addin to achieve your goal:

 

Sub AddPanelToGetStartedTab()
    
    ThisApplication.Documents.CloseAll False
    
    ' Get the ribbon associated with the zero-doc
    Dim oPartRibbon As Ribbon
    Set oPartRibbon = ThisApplication.UserInterfaceManager.Ribbons.Item("ZeroDoc")

    ' Get the "GetStarted" tab
    Dim oTab As RibbonTab
    Set oTab = oPartRibbon.RibbonTabs.Item("id_GetStarted")

    ' Create a panel named "Update", positioned after the "Measure" panel in the Tools tab.
    Dim oPanel As RibbonPanel
    Set oPanel = oTab.RibbonPanels.Add("Custom", "ToolsTabCustomPanel", "SampleClientId")
    
    ' Create an icon, modify the path to your icon
    Dim oIcon As IPictureDisp
    Set oIcon = stdole.LoadPicture("C:\Program Files\Autodesk\Inventor 2011\Bin\app.ico")
    
    ' Create a custom command
    Dim oDef1 As ButtonDefinition
    Set oDef1 = ThisApplication.CommandManager.ControlDefinitions.AddButtonDefinition("CustomIcon", "CustomIcon", kQueryOnlyCmdType, "Client_id", , , oIcon, oIcon)
    

    ' Create a button control
    Call oPanel.CommandControls.AddButton(oDef1, True)
'    oDef1.Delete
'    oPanel.Delete
    
End Sub

 

Search in Inventor API Help for "working with the ribbon ui api" topic you may get more info on how to customize ribbon UI.

 



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report