Change Drawing Reference with .NET in SW2011 API

I would like to create a drawing using a standard template with all our dimensions, notes, and all the other company related stuff on it.

I know when you use the standard SolidWorks you can open a drawing and change the part reference.

But, how would you do this using programming code?

Any one have any ideas on the best way to go about this?

SolidworksApi macros