Document Manager Rename and Replace

I wrote a program that uses the swComp.Replace(NewFileName, configName, AttachMates) method.  I run it and when I open the Assembly the "Cannot locate file" dialog pops up.  I click NO to load the assembly anyways and MyNewFileName is listed in the Feature Tree correctly, but it is suppressed.

Any ideas???

SolidworksApi macros