Renaming files

I want to rename all 9500 of our existing files (Parts andassemblies but probably not drawings initially) to a sequentialnumber and maintain the relationships between the files prior tochecking them into the vault of workgroup PDM. I have managed tocobble together a macro that will copy and paste the filename to adescription custom property of all the parts and assemblies withina folder but I am stumped as to how to automatically rename thefiles and maintain the relationships between parts, assemblies anddrawings.


SolidworksApi macros