Did you imported swCommands.tlb to your project?
As Artem has already mentioned, make sure you include the swCommands library.
Try adding the following line to the top of your code:
using namespace SOLIDWORKS::Interop::swcommands;
Hope this helps,
Great! It works!
The .tlb file is binary, that's why I couldn't find where is the definition of swCommands_e enumerator.
Thank you, Artem and Filipe