How do I archive WB project without results using scripting?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 444
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭
edited June 2023 in Structures

I want to archive my WB project using scripting but using the Archive() method archives the project with result files. How can I archive it without results (.rst file etc.)?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 444
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    Answer ✓

    The boolean argument IncludeSkippedFiles does the trick. If set to False the archived project doesn't include the result files (.rst etc.). Example usage:

    Archive(FilePath="\Path\to\my\test.wbpz", IncludeSkippedFiles=False)