I'm a developer, but for the last year or two have been learning and using Revit instead. I haven't yet delved into coding in Revit.
I am wondering if anyone can give me any idea of how involved it would be (and whether it's even possible) to write a utility that automatically purges Revit files. Specifically, I would love to be able to schedule a batch file to run overnight that invokes such a utlity to open, purge, and then re-save files (e.g. - purge.exe MyProject.rvt); or, if that's not possible, maybe even something that can run from within a Revit application session and do the same thing at a scheduled time for multiple files in a given folder.
I don't mind figuring it out for myself, but would appreciate any insight anyone can give me on feasibility (and even suggestions on direction) before I try tackling it.
Can anyone shed some light?
Thanks!
Joel
Solved! Go to Solution.
Solved by phildebrandt. Go to Solution.
Opening and saving files is no problem. I don't think you can invoke the purge command from within a customn app. You would probably have to write some routines that would check for instances of each family type before removing them from the file. I think this is also do-able.