AnsweredAssumed Answered

VB.NET Addin templete: How to deactivate the command?

Question asked by Ross John on Apr 3, 2017
Latest reply on Apr 3, 2017 by Ross John

Hello everyone,

I am using the standard VB.NET Addin templete. There is a command in the templete called "CreateCube".

 

I would like to know how to deactivate this "CreateCube" command, when I am working with a drawing or an assebly.

To be exactly, how to make this "CreateCube" command button gray and nonclickable in drawing or assembly, but normal and clickable ONLY in part modus?

 

Hope you  understand what I mean. Thank you for your help!

Outcomes