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:


And/Or      Category 1              Category 2          Condition      Value
------------------------------------------------------------------------------
            Custom properties        partname            is yes        slide

how to get above result with the api advanced selection Criteria.AddItem   ?

SolidworksApi macros