- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @tobias_wiesendanger. That is a tough one. Are you just talking about any given button in Inventor's user interface, or are you talking about a button for a custom Inventor add-in that you have control over? If you have access to that specific ControlDefinition, then your add-in will receive the notification of the Click event. But if it is not add-in related, then the main thing that comes to mind is maybe attempting to monitor the UserInputEvents.OnActivateCommand Event, and the UserInputEvents.OnTerminateCommand Event. Those Events will of course be triggered a ton, so the code used for monitoring them would need to be pretty efficient to avoid slowing Inventor down. On the down side of using those events is that although they both have a 'Context' (NameValueMap), neither of them currently offer any information within that Context, so they are fairly basic.
Wesley Crihfield
(Not an Autodesk Employee)