I'm trying to find a way to archive multiple models at once using the python API.
Unfortunately, the archive_project(destination, full) method only seems to allow me to set a destination path for the archive file. It does not allow me to set the path of the model to be archived. Apparently it just defaults to the currently open project.
This is odd, because archiving any project is possible from within the normal IES dialogue boxes.
Is there's a way to force the method to use a different .mit file target path than the default of the currently open project?
Thanks
CP
Batch Archiving Models
- Complex Potential
- VE Expert

- Posts: 467
- Joined: Wed Jan 09, 2013 11:57 am
- Location: Bristol, UK
Re: Batch Archiving Models
The other way of doing it is to make a python list of projects you want to archive,
then use a loop like:
for each project_file in list
open(project_file)
archive
close(project_file)
then use a loop like:
for each project_file in list
open(project_file)
archive
close(project_file)
