Hi,
I read that it's not possible to import a style (styxml file) into the style editor through the API, there is no dedicated command.
However I'm wondering if there's a a way to have the internal name corresponding to the button as we can do for the ribbon buttons (there's a sample code which does this).
So is it possible ot get the internal name of a button inside a dialog box (style editor here) or is it really hopeless to think I can import a style with a macro ?
By the way, that would be for Inventor 2009.
The following post could be useful:
Running Commands Using the API
http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html
That could be quite usefull indeed, especially the event watcher that I didn't know. I'll keep you informed as soon as I can test this.