need help with (what i thought would be a) simple macro....

All

I am new to API/writing macro for Solidworks. What i wanted was to create a macro, that when ran would:

1) set current part or assembly orientation to isometric & zoom to fit

     1a) Set current drawing to zoom to fit

2) Save Document

3) Close Document.

When i try to record this via macro, it will not save and close any other document than the one that was active when the macro was created?

I am searching thru the API help, but am mostly at a loss here?

Thank you for your time and assistance, greatly appreciated

SolidworksApi macros