Batch Archiving Models

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
User avatar
Complex Potential
VE Expert
VE Expert
Posts: 467
Joined: Wed Jan 09, 2013 11:57 am
Location: Bristol, UK

Batch Archiving Models

Post by Complex Potential »

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
gazzat5
VE Beginner
VE Beginner
Posts: 12
Joined: Tue Jul 09, 2019 9:53 am
Location: London
Contact:

Re: Batch Archiving Models

Post by gazzat5 »

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)
Post Reply