Remove "Autodesk A360" tab from Inventor 2016 Ribbon

Remove "Autodesk A360" tab from Inventor 2016 Ribbon

Anonymous
Not applicable
1,346 Views
3 Replies
Message 1 of 4

Remove "Autodesk A360" tab from Inventor 2016 Ribbon

Anonymous
Not applicable

I have unloaded the 360 Add-Ins from Inventor 2016 but the Ribbon still has the Autodesk A360 Tab and I would like to remove it for all of our CAD users.

 

Does anyone know how to diable the Autodesk A360 Ribbon Tab?

 

Add-Ins Removed

Autodesk.Configurator360.Inventor.addin

autodesk.InventorConnect.inventor.addin

 

I Checked them manually and the Addin xml shows them as blocked.

"%appdata%\Autodesk\Inventor 2016\Addins\AddInLoadRules.xml

<Id Policy="Block">{84018CD0-D6DD-4A2F-AD44-1048D919FD9B}<!--Connected Design on A360--></Id>

<Id Policy="Block">{90A53562-92D0-48E1-82C1-48507F10DA73}<!--Autodesk.Configurator360.Inventor--></Id>

 

Also had a hunt around in these locations for more interface XML files but nothing useful so far:
C:\ProgramData\Autodesk\Inventor Addins

C:\ProgramData\Autodesk\Inventor 2016\Addins

 

0 Likes
Accepted solutions (1)
1,347 Views
3 Replies
Replies (3)
Message 2 of 4

wayne.brill
Collaborator
Collaborator
Accepted solution

Hi,

 

The “Autodesk 360” is built-in tab, not created by an addin.

 

The Inventor API does support access to the Inventor Ribbon and you could delete that ribbon tab. Here is a VBA example that shows this.

 

Sub Test()
    Dim oRibbon As Ribbon
    For Each oRibbon In ThisApplication.UserInterfaceManager.Ribbons
        Dim oTab As RibbonTab
        Debug.Print oRibbon.InternalName
        
        Set oTab = oRibbon.RibbonTabs("id_OnlineTab")
        oTab.Delete
       
    Next
End Sub

You could also hide it in OnEnvironmentChange and OnResetRibbonInterface events. Here is a VBA example of the OnEnvironmentChange event:

 

 Private Sub oUserInterfaceEvents_OnEnvironmentChange(ByVal Environment As Environment, ByVal EnvironmentState As EnvironmentStateEnum, ByVal BeforeOrAfter As EventTimingEnum, ByVal Context As NameValueMap, HandlingCode As HandlingCodeEnum)
    
    If BeforeOrAfter = kAfter Then
        Dim oRibbon As Ribbon
        Set oRibbon = ThisApplication.UserInterfaceManager.ActiveEnvironment.Ribbon
        Dim oTab As RibbonTab
        For Each oTab In oRibbon.RibbonTabs
            If oTab.DisplayName = "Autodesk A360" Then
                oTab.visible = False
                Exit For
            End If
        Next
    End If
End Sub

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 4

Anonymous
Not applicable

Hi Wayne,

 

Deleting the ribbon tab worked very well, thanks for your help..

I found some similar VBA sample code in the API help file in a hunt for the internal name of the ribbon but hand't got it working yet!

 

Is the internal name simply "id_OnlineTab"?

 

This is what I had found from code below:

Tab: Autodesk A360, id_OnlineTab, Visible: True

 

API Sample exerpt "Public Sub PrintRibbon()"

 

Dim oRibbon As Ribbon
    For Each oRibbon In ThisApplication.UserInterfaceManager.Ribbons
        Print #1, "Ribbon: " & oRibbon.InternalName

        Print #1, "    QAT controls"
        Call PrintControls(oRibbon.QuickAccessControls, "            ", 0)

        Dim oTab As RibbonTab
        For Each oTab In oRibbon.RibbonTabs
            Print #1, "    Tab: " & oTab.DisplayName & ", " & oTab.InternalName & ", Visible: " & oTab.Visible

            Dim oPanel As RibbonPanel
            For Each oPanel In oTab.RibbonPanels
                Print #1, "        Panel: " & oPanel.DisplayName & ", " & oPanel.InternalName & ", Visible: " & oPanel.Visible

                Call PrintControls(oPanel.CommandControls, "            ", 0)

                If oPanel.SlideoutControls.Count > 0 Then
                    Print #1, "            --- Slideout Controls ---"
                    Call PrintControls(oPanel.SlideoutControls, "            ", 0)
                End If
            Next

 

0 Likes
Message 4 of 4

HenrikRaboese
Explorer
Explorer

Hi,

the MACRO-solution it's not working perfect. The problem is: the DEFAULT.IVB (user VBA projects) dosn't support events (GUI or User).

 

A other solution is:

 - export the user-defined-properties for menu and ribbon

 - open the xml file (Location: %APPDATA%\local\autodesk\inventor<VERSION>\preferences\ <YOUR-NAME-HERE>.xml

 

In this file search for node:

..
  <Ribbon>
    <InvRibbonUICustomization ....>
      <RibbonStates>
        <Ribbon RibbonID="ZeroDoc">
          <RibbonControl ....>
            <Tabs>
               <!-- !!PASTE THE FOLLOWING NODE TO ADD HERE!! -->
              <Tab Cookie="Tab=id_GetStarted" IsActive="False" IsVisible="True">

 ......
 .......

and add this on the described node entry:

		.....
			  <Tab Cookie="Tab=id_OnlineTab" IsActive="False" IsVisible="False">
				<Panel />
			  </Tab>
.....

 

Now you can import the xml file for menu and ribbon - and the A360 is not shown.

 

Have Fun

Henrik

 

0 Likes