Trying to return directory of running Macro (.swp file)

I'm writing a rather extensive program for another SW User, and as such I have no control over where the folder containing the assembly and components will end up, just that the .swp file that interacts with them will be in the same folder.  Since I do not know the end user's file structure, I can't write things like

Opendoc6 ("c:\documents and settings\administrator\folder 1\folder 2\assembly\assembly.sldasm",.....)

but if there was a function that returned the folder that the .swp file that was running was in, then I could do something like

dim path as string


path = *Currentproject*.*FUNCTION*


Opendoc6(path&"assembly.sldasm", .....)

So, do such a function exist?  I know that if the end user had the assembly file open when they started the macro I could use swModel.getpathname, but the enduser hasn't figured out he has to open the master assembly file first, and I'm tired of getting calls.

Thank you in advance.

SolidworksApi macros