Exception at Application.CommandManager.CreateInteractionEvents method

Exception at Application.CommandManager.CreateInteractionEvents method

Anonymous
Not applicable
679 Views
2 Replies
Message 1 of 3

Exception at Application.CommandManager.CreateInteractionEvents method

Anonymous
Not applicable

So, when I try to call a CreateInteractionEvents method I get a System.Runtime.InteropServices.COMException with a non-informative message 'Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))'. I would be grateful for any help!

 

Screenshot_8.png

0 Likes
Accepted solutions (1)
680 Views
2 Replies
Replies (2)
Message 2 of 3

MjDeck
Autodesk
Autodesk
Accepted solution

At the time you call CreateInteractionEvents, a document must be active. It looks like that might not be the case here. You're creating a part after the call.


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 3

Anonymous
Not applicable
Yes, that's right! Oh, what a trivial mistake... Thank you very much!
0 Likes