1
Answered

_backup folder deletion script through Clarity

I have a PublishRevitModel task running through Clarity, and a batch file as a post-action. I was able to resolve most issues I had with the file, except one. Clarity creates a "_backup" folder in the location that it's publishing to, and my batch file calls a powershell script that at one point deletes this folder. The rest of the functions in the script work exactly as intended, but the _backup folder isn't getting deleted. I'm assuming this is most likely because there is something open/being edited in the _backup folder through Clarity when my batch file starts. If I add a long enough timeout before my script runs, will this fix the problem? Or will the _backup file not be able to be deleted until after the Clarity task ends (including the post-action)?

2 replies

Dylan - I have to say I'm not positive... I expect that you should be able to wait a little and then clean it out.

The _backup folder is not something we create - it is something that Revit creates automatically (we are effectively saving the file as a new central file- and I think the backup gets created automatically).

DS

30 second timeout at the beginning of the batch file seemed to do the trick!