Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: bindlmi

Hi guys.  Not sure that customize dialog would recognize that you have some code to enable or disable specific commands when specific  environment changes happen.  It seems to me like the following would be the proper way to handle that.

Environment.DisabledCommandList 

DisabledCommandList 

DisabledCommandList.Add 

DisabledCommandList.Remove 

That way the Environment itself knows which ones are not relevant while it is active.

There is also the Environment.DisabledCommandTypes for broader terms.

And you can control the RadialMarkingMenus in that Environment (Environment.RadialMarkingMenus), if you want to make sure a specific command is not in any of them by default, but that should not have anything to do with shortcuts in the customize dialog.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)