Circular profile sweep macro

Hello,

I would like to automate my creation process for hoses.

What I want is a macro that takes my selected 3DSketch and makes it into a surface sweep with a circular profile diameter of 11.5 mm.

I tried to record a macro of the process but as I switch to circular profile in the sweep options, SW deselects my 3DSketch and I have to select it again. Which won't do for this macro as it then says to use 3DSketch1. I want to be able to execute this macro on any sketch regardless of its name.

Any input is greatly appreciated.

SolidworksApi macros