The callbacks used defined in the api are string names. What specifically do these refer to?
Is it a method name in the SWAddin class?
I am specifically talking about a CommandItem in this case. The callback is called when the "item" is selected.
A String is used. One of the big problems is that I am trying to aggregate all the callbacks and if SW searches through all the methods for that name then I have to implement that method to get called. This makes it much more difficult as I'd rather have a single callback that dispatches the call to the appropriate event handler(I'm trying to implement .NET like event handling).
While it is not hard to specify a single function for all the callbacks it then becomes impossible to determine what command generated the callback? (it would be awesome if in the string you could pass a parameter... of course more wishful thinking on my part...)
Any ideas?
SolidworksApi macros