How to disable my command item when user uses other feature?
SWX is disabling all features when PropertyMenagerPage is open, but my feature/command item is still active.
You can identify whether there any opened PMP using this method SldWorks::GetRunningCommandInfo. If you are using CommandManager commands you have an Enable method (CommandGroup::AddCommandItem2 'EnableMethod' parameter). Return 0 from the handler function to disable your command.
Artem Taturevych, Application Engineer at Intercad (Australia)
translationXpert – add-in to translate SolidWorks models
myIntercad – an integrated tool for SolidWorks Professionals
LinkedIn SolidWorks API Education Group
Thank You Artem.
Retrieving data ...