the easy way to judge if certain Configuration is exist?

Dear all

I want to know, How to judge if configuration name "AAA" is exist?

if not exist,then use

ConfigMgr.AddConfiguration to add this configuration

if exist ,then activate this configuration

is there any  simplest way? the easier the better

zhengjun yuan

SolidworksApi macros