Hey all,
Here's the problem:
Im using
errOut = swDocMgr.CopyDocument(sDocFileName, sNewDocFileName,vDependArr, vDependNameArr, 0, swSearchOpt)
to copy an assembly to a new directory and at the same timechanging name of the assembly and all of the parts that belong toit. It all works good but the problem is that sometimes thecomputer "freezes" for a minute or two while running that command..If I at the same time check windows explorer I can see that thefiles are already copied and in place in the new directory... Icant understand why it takes so long time, I've been experimetingwith swSearchOpt but havent really understood what it does... anyhelp is appriciated!
edit: MIght answer my own question ... it takes time because SW hasto go through all the files and update references I think..SolidworksApi macros
Here's the problem:
Im using
errOut = swDocMgr.CopyDocument(sDocFileName, sNewDocFileName,vDependArr, vDependNameArr, 0, swSearchOpt)
to copy an assembly to a new directory and at the same timechanging name of the assembly and all of the parts that belong toit. It all works good but the problem is that sometimes thecomputer "freezes" for a minute or two while running that command..If I at the same time check windows explorer I can see that thefiles are already copied and in place in the new directory... Icant understand why it takes so long time, I've been experimetingwith swSearchOpt but havent really understood what it does... anyhelp is appriciated!
edit: MIght answer my own question ... it takes time because SW hasto go through all the files and update references I think..SolidworksApi macros