help for the api : advanced selection Criteria.AddItem

solidworks version 2010         windows7  x64

In the 'Define Search Criteria' tab of the 'Advanced Component Seelction' dialog this criteria looks like this:

<br>And/Or      Category 1              Category 2          Condition      Value<br>------------------------------------------------------------------------------<br>            Custom properties        partname            is yes        slide<br><br><span style="font-size: 14pt;"><strong>how to get above result with the api advanced selection Criteria.AddItem   ?</strong></span>

SolidworksApi macros