ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
FGFeng Guan07/10/2008
Hi,

Does anyone know how to flexibly enable and disable Add-in menu item?

For example, my Add-in has 4 menu items. Only menu item 1 is enabled when Solidworks starts up. User will click menu item 1 and run the Add-in. If certain conditions are satisfied, other menu items can be enabled.

I searched Solidworks API help file. The function "AddCommandItem2" can enable/disable menu item when Solidworks loads my Add-in. But I cannot enable/disable menu item after loading.

Please help. Many thanks
Newform