Jump to next open document

Hello,

I would like to write a simple macro I can bind to a key on the keyboard that will switch to the next open document.

How would I go about doing this? swmodel.getnext only works if you start at the beginning of the list of open docments. I would like to goto the next document based on the current one that is open.

Thanks,

SolidworksApi macros