- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @bindlmi. The 'category' idea was just a 'portion' of the overall process I had in mind, along with the disabled commands list idea. But honestly add-ins and controlling the scope of an add-in's influence within Inventor are not really my area of expertise. Judging by the image of the error message, and the line I highlighted below, it appears to be encountering a problem 'getting' the DisabledCommandList for some reason. Since that property is ReadOnly, that means we can not set another list as its value directly, so the only way to 'add' or 'remove' commands from that list is to 'get' the existing list object first, then use that list to add or remove them, so encountering an error while just getting it does not seem logical. You may need to enclose it in a Try...Catch...End Try statement. Or, maybe we can only modify it while that environment is 'active', not sure.
Anyways, I'm glad you found something that seems to be working OK for you.
Wesley Crihfield
(Not an Autodesk Employee)