Visual Studio Inventor AddIn Template - Creating a New Ribbon Tab

Visual Studio Inventor AddIn Template - Creating a New Ribbon Tab

j_chaissonQB25Y
Contributor Contributor
1,033 Views
4 Replies
Message 1 of 5

Visual Studio Inventor AddIn Template - Creating a New Ribbon Tab

j_chaissonQB25Y
Contributor
Contributor

this is for all you Code Guru's, 

 

is there anyone out there that has modified the StandardAddInServer.vb file to add a new Ribbon Tab and then have your Panels and buttons reside there instead of using the Inventor default Ribbon Tabs? 

 

Please don't respond with a hyperlink to Brian's AU document or his MOD blog. Yes I've seen them and have studied them unfortunately most of that is VBA.

 

Actual code snippets of a modified StandardAddInServer.vb would be great.

 

-Jeremy

0 Likes
1,034 Views
4 Replies
Replies (4)
Message 2 of 5

WCrihfield
Mentor
Mentor

Hi @j_chaissonQB25Y.  I'm no expert in Add-Ins, but that actually sounds similar so one of the cababilities of @JelteDeJong 's Add-In named "Button Constructor".

http://www.hjalte.nl/inventor-addins/31-button-constructor 

https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=2268703737300536294&appLang=en&os=Win64 

Maybe he would be able to help some with that, I'm not sure.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 5

j_chaissonQB25Y
Contributor
Contributor

@WCrihfield , 

 

I have used his Addin before, I'm trying to take that next step in my automation and having Inventor Addins that's not iLogic based.

 

@JelteDeJong, I would really appreciate your help with this. you can message me directly and we can do a teams call if you would like.

 

-Jeremy

0 Likes
Message 4 of 5

Frederick_Law
Mentor
Mentor

"IV Net AddIn Ribbon" is VS template.

 

"SaveThumb" is addin to save file thumbnail.

It add icon to new Ribbon Panel under "Tool".

You can see 2 added panels.  Spend more time making icons then coding the addin 🤣

RibbonPanel-01.jpg

0 Likes
Message 5 of 5

JelteDeJong
Mentor
Mentor

Helping others on the forum is my hobby and I'm not a service provider therefore I don't do calls. But if you have questions that I can help you with just tag me and I will help if I can. For your opening question.

I will not give you links to AU classes or the site of Brian but I do have a link to a blog post. In that blog article, I describe how you can create an addin with Visual Studio/VB.net. Creating a button is also included in that post. (Although there is a separate post for adding icons to those buttons.) In the post, I also assume that you want to reuse ribbon tabs/panels from Inventor. If that is not the case you would need to change the "MyButton.AddButtonDefinitionToRibbon()". Insetad of using the item functions you should use the add functions something like this:

    Private Sub AddButtonDefinitionToRibbon()

        Dim ribbon As Ribbon = _inventor.UserInterfaceManager.Ribbons.Item("Assembly")
        Dim ribbonTab As RibbonTab = ribbon.RibbonTabs.Add("DisplayName", "InternalName", "ClientId")
        Dim ribbonPanel As RibbonPanel = ribbonTab.RibbonPanels.Add("DisplayName", "InternalName", "ClientId")
        ribbonPanel.CommandControls.AddButton(_settingsButton)

    End Sub

Now here are the links 🙂

http://www.hjalte.nl/tutorials/60-creating-an-inventor-addin

http://www.hjalte.nl/tutorials/61-adding-icons-to-your-buttons

 

and here you will find all the parts of the tutorial.

http://www.hjalte.nl/tutorials

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com