Propagate feature to parts

Hi Guys,

I am trying to make a macro to change the Propagate feature to parts within the assembly Cut feature.I found one macro witch work fine but you have to select the feature manually.I want to traverse the assembly and change this option where needed bu t I'm struggling to do so.I think i am not selecting the feature the right way because I get false in  boolstat = swExtrudeFeatureData.AccessSelections(swRootComp, swChildComp) and boolstat = swFeat.ModifyDefinition(swExtrudeFeatureData, swRootComp, swChildComp)? I'm not very experienced in macros so any I would be very happy for any help.Find attached both macros.

Thanks.

SolidworksApi macros