automation error invalid callee

automation error invalid callee

Anonymous
Not applicable
293 Views
1 Reply
Message 1 of 2

automation error invalid callee

Anonymous
Not applicable
i have an addin running in inventor 7
works fine
now i am trying to use the same code in inventor 8
i did the debugging as described by kent (works great!!)
and found out automation error invalid callee

it is at
Set moPropertyTypeButton = AddInSiteObject.CreateButtonDefinitionHandler("Button2UniqueName", kShapeEditCmdType, _
"Eriez Properties", "Property type button", "PropertyType Button")

i am adding an attachment of the entire class

as i say i have this running in inventor7 but it now stops at this line in inventor 8

any more ideas
thanks
0 Likes
294 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
When debugging add-ins, buttons cannot be displayed with icons. You need to handle the error and create the button without the icons. Something like: On Error Resume Next Set moPropertyTypeButton = AddInSiteObject.CreateButtonDefinitionHandler("Button2UniqueName", kShapeEditCmdType, _ "Eriez Properties", "Property type button", "PropertyType Button") If Err Then Set moPropertyTypeButton = AddInSiteObject.CreateButtonDefinitionHandler("Button2UniqueName", kShapeEditCmdType, _ "Eriez Properties") Err.Clear End If Your tool button will appear with text in IV rather than with an icon. Neil "ADN0148" wrote in message news:1916134.1088094009578.JavaMail.javamailuser@localhost... > i have an addin running in inventor 7 > works fine > now i am trying to use the same code in inventor 8 > i did the debugging as described by kent (works great!!) > and found out automation error invalid callee > > it is at > Set moPropertyTypeButton = AddInSiteObject.CreateButtonDefinitionHandler("Button2UniqueName", kShapeEditCmdType, _ > "Eriez Properties", "Property type button", "PropertyType Button") > > i am adding an attachment of the entire class > > as i say i have this running in inventor7 but it now stops at this line in inventor 8 > > any more ideas > thanks
0 Likes