Skip to main content

Hi all: I am  trying to do save ZBF file via Python API to ZOS. 

At the start of my code, I initiate a POP analysis as follows:

pop_analysis = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.POP) 

After which, I set up the POP parameters:

pop_analysis.RunAnalysis()
pop_analysis.SaveBeamFile(r"C:\Path\To\YourBeamFile.ZBF")

In the next iteration, how do I check if there’s an already open POP analysis and all I want to do is refresh it and save the updated ZBF?

At the end of all iterations, how can I close (all open) POP analysis?

Thanks - Asuku

Be the first to reply!