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

ButtonDefinition is not derived from ControlDefinition, so you can't cast to it. Get it by name in the ControlDefinitions collection.

 

oTempEnv.DisabledCommandList.Add(Plugin.m_inventorApplication.CommandManager.ControlDefinitions["myDrawingButtonInternalName"]);