Could you explain what is not working as expected?
- Is sf.SelectShapes returning false?
- Does your method trow an exception? If so which one.
- Does sf have a the shapes you are looking for?