Creating an add-in that disables editing of templates etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
In the past 2 and a bit years I've written a couple of add-ins for Inventor and I feel I've learned a lot about how to control the interface etc.
One thing I'm particularly interested in implementing in the not-too-distant-future is an add-in that prevents users being able to modify/edit templates/styles without having the correct permissions and to notify me if/when they achieve this. Of course, the library can be locked down at the project level, but the ability to edit/fiddle with templates in newly created .idw files still remains despite this.
I also realise that add-ins can be disabled, so I am doubly curious as to whether that functionality can be "locked out" except for Inventor "administrators" or "superusers";
Would I simply need to capture the context menu event that starts the "Edit definition" command and then check whether the user has the appropriate permissions? (I have done some work that involved the UserInputEvents.OnContextMenu event so I am familiar with how to look for the event I need)
Thanks in advance,
Alex.
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example