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.)?
Archive()
The boolean argument IncludeSkippedFiles does the trick. If set to False the archived project doesn't include the result files (.rst etc.). Example usage:
IncludeSkippedFiles
False
Archive(FilePath="\Path\to\my\test.wbpz", IncludeSkippedFiles=False)
Dear @Ayush Kumar
I have two questions regarding the archive function.
How can I inspect the function to see all available arguments? See below for my attempt using 'inspect' module that did not work.
Is it possible to run the archiving script from command line in batch mode, so without displaying the project by GUI?
Ref. 1:
import inspect inspect.getfullargspec(Archive)
MissingMemberException: 'module' object has no attribute 'getfullargspec'
@Matthias
Try this in command shellhelp(Archive)
help(Archive)
Yes, you can save the command in a WB journal script and pass it with -R flag. Refer to the post below:https://discuss.ansys.com/discussion/1881/how-to-run-a-workbench-script-in-headless-in-mode