Hi all,

I've finally decided to take the plunge and give add-ins a go, but so far it's not going well.

I've surrounded myself with printouts from Mr Ekins, poured over the SDK sample add-ins and scoured the discussion forums, but I've come up with naught...

The Code i've got is shown below (albeit a bit truncated). I'm pretty sure that the error is with the arguments for 'AddButtonDefinition', but I can't figure it out, it matches one of the Samples perfectly (where it matters).

Code:
Private m_inventorApplication As Inventor.Application
Private m_ClientID As String
Private WithEvents oButtonActivate As Inventor.ButtonDefinition

Public Sub Activate(ByVal addInSiteObject As Inventor.ApplicationAddInSite, ByVal firstTime As Boolean) _
Implements Inventor.ApplicationAddInServer.Activate

Try oButtonActivate = m_inventorApplication.CommandManager.ControlDefinitions.AddButtonDefinition( _
"HDAL Label Maker", "ActivateHDALLabelMaker", CommandTypesEnum.kShapeEditCmdType, _
m_ClientID, "Activates the HDAL Label Maker.", "HDAL Label Maker", icoHDALLabelMaker16x16, _ icoHDALLabelMaker32x32)
Catch ex As Exception
MsgBox(ex.ToString & vbCrLf & m_ClientID)
End Try
(Sorry about the formatting)

I've attached an image of the error thrown by 'Catch ex as Exception' incase it offers any clues...

Any assistance would be greatly appreciated. I've spent WAY too much time trying to figure this one out...

Cheers