Change Drawing References - DocumentManager

I've created a sub which gets a reference drawing, and copies it to a new location/filename.  I now want to use the document manager to reference the new assembly.

The document manager can open the files no problem, and is able to read current references (GetAllExternalReferences), .ReplaceReferences is replacing the reference (checked with GetAllExternalReferences) run after .ReplaceReferences.  The only thing following that is a swDMDoc.Save, swDMDoc.CloseDoc.

I then go to check the references from the sw open dialog and find that nothing has changed???  Anyone able to help me out?

SW 2007

Thanks,

Bryan

SolidworksApi macros