I am working on creating a macro that uses the SW API MoveDocument() method. The macro takes all SolidWorks files in a working directory and moves them to a new one using the method. Inside the new working directory, a folder is created that is specific to the part name. For example, if the part name was 100-0001, the new directory for it would be "working directory\100-0001\100-0001.sldprt".
The problem I am running in to is that the MoveDocument() method isn't working. I am having the status of the function return as true (error free), but the files are not being moved. Everything else is functioning as intended.
Unfortunately, I have not been able to find any examples of the MoveDocument() method online, so I am not completely sure if the direction I am heading is correct. I attached the macro for anyone who is willing to help troubleshoot this with me. I highly appreciate any help in advance!