Structural member from sketch -> combine

Hi everyone, 

I'm looking to create a macro in SW2013 that will select all entities in a sketch, convert to a specific structural member, then combine all. Is this do-able?

Thank you,

SolidworksApi/macros