I have a picker (derived from
CRhinoGetPoint) with a toggle option (say
_Opt with value labels
_On). And I have a command which uses this picker. My command can be run like that:
In case of pre-selection, I don’t use my picker; thus the option
_Opt is not used.
My problem is that, when running
_MyCommand _Opt=_Off with a pre-selection, the string
_Opt=_Off is not used and, when my command tries to run a Rhino command, it runs
So, I’m looking for a way to “eat up” this unused option. I have tried the following:
CRhinoGetObject dummyPicker; bool dummyVal = true; dummyPicker.AddCommandOptionToggle ( RHCMDOPTNAME (L"Opt"), RHCMDOPTVALUE (L"Off"), RHCMDOPTVALUE (L"On"), dummyVal, &dummyVal); dummyPicker.EnablePreSelect(true); dummyPicker.EnablePostSelect(false); dummyPicker.GetObjects();
but it doesn’t skip the option string
Has anyone any solution?