How to use IsSuppressed2?

Hi there,

I'm trying to use the IsSuppressed2 member of the IFeature pointer, but I'm not sure how to convert the return value into a useful diagnostic. I'm writing my code in C++. Here is what it looks like thus far:

HRESULT hres = NOERROR;

hres = Model->IFirstFeature(&Feat);

hres = Feat->IsSuppressed2(swThisConfiguration, ConfigNameArray, &ConfigStates);

But I'm not sure how to proceed, i.e. how to evaluate the results returned in the ConfigStates VARIANT. Does this data need to be unpacked? If so, into what, an array of  VARIANT_BOOL type? But since I've specified "swThisConfiguration" as the configuration option, I should only get 1 state back correct?

Any help that you could provide would be greatly appreciated. Thank you!





VARIANT ConfigStates;

VARIANT ConfigNameArray;

hres = Model->GetConfigurationNames(&ConfigNameArray);

SolidworksApi macros