Hey Jef,
Thanks for the reply, I thought it could be an issue with that so i checked it and in my addin file it says from version 21. I also checked the version of inventor on the workstations which is 21.1 so normally it should be ok. are there any 'major' differences between 2017 and 2018? In my first post I had a similar issue and got it fixed by adjusting the images. Could it be that Inventor changed their requirements for images? Normally we update to inventor 2018 next wednesday so I hope we get to install the curretn version succesfully without issues. I'll keep you updated.
for further info my .addin file
<Addin Type="Standard">
<!--Created for Autodesk Inventor Version 22.0-->
<ClassId>{230cac1d-5709-4684-817a-5f95cf1ab8ee}</ClassId>
<ClientId>{230cac1d-5709-4684-817a-5f95cf1ab8ee}</ClientId>
<DisplayName>InventorAddIn2</DisplayName>
<Description>InventorAddIn2</Description>
<Assembly>InventorAddIn2.dll</Assembly>
<LoadOnStartUp>1</LoadOnStartUp>
<UserUnloadable>1</UserUnloadable>
<Hidden>0</Hidden>
<SupportedSoftwareVersionGreaterThan>20..</SupportedSoftwareVersionGreaterThan>
<DataVersion>1</DataVersion>
<UserInterfaceVersion>1</UserInterfaceVersion>
</Addin>
and my activate() method
Public Sub Activate(ByVal addInSiteObject As Inventor.ApplicationAddInSite, ByVal firstTime As Boolean) Implements Inventor.ApplicationAddInServer.Activate
' Initialiseer de Add-In members.
g_inventorApplication = addInSiteObject.Application
' koppel met de uiEvents zodat je aan de ResetRibbon kan
m_uiEvents = g_inventorApplication.UserInterfaceManager.UserInterfaceEvents
' Voor een button aan te maken moet je eerst een groot en een klein icon hebben dat je wil tonen.
' Ook moet je de controlDefinitions ophalen om de button te kunnen definieren.
' Als we dat gedaan hebben kunne we de button difiniëren met een naam, beschrijving en icons
' dit doen we voor de 3 buttons
Dim POSGeeflargeIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.GetItemNrs32)
Dim POSGeefsmallIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.GetItemNrs16)
Dim POSGeefcontrolDefs As Inventor.ControlDefinitions = g_inventorApplication.CommandManager.ControlDefinitions
m_POSGeefNrButton = POSGeefcontrolDefs.AddButtonDefinition("Geef POSNr", "Wijs POs nummers toe", CommandTypesEnum.kNonShapeEditCmdType, AddInClientID, "test", "test", POSGeefsmallIcon, POSGeeflargeIcon)
Dim POSDeletelargeIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.GetItemNrs32)
Dim POSDeletesmallIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.GetItemNrs16)
Dim POSDeletecontrolDefs As Inventor.ControlDefinitions = g_inventorApplication.CommandManager.ControlDefinitions
m_POSDeleteNrButton = POSDeletecontrolDefs.AddButtonDefinition("Delete POSNr", "Verwijder bestaande POS nummers", CommandTypesEnum.kNonShapeEditCmdType, AddInClientID, "test", "test", POSDeletesmallIcon, POSDeletelargeIcon)
Dim COLlargeIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.COL32)
Dim COLsmallIcon As stdole.IPictureDisp = PictureDispConverter.ToIPictureDisp(My.Resources.COL16)
Dim COLcontrolDefs As Inventor.ControlDefinitions = g_inventorApplication.CommandManager.ControlDefinitions
m_KleurCodeButton = COLcontrolDefs.AddButtonDefinition("KleurCode", "Wijs kleur aan parts en assemblies toe", CommandTypesEnum.kNonShapeEditCmdType, AddInClientID, "test", "test", COLsmallIcon, COLlargeIcon)
' Als de flag firstTime waar is zal de functie AddToUserInterface opgeroepen worden (altijd waar)
If firstTime Then
AddToUserInterface()
End If
End Sub