I am running tolerancing analysis (TA) using Matlab. I noticed that one tolerance data viewer window will show up after the TA is finished. I would like to close the viewer window using Matlab script however I was not able to find the right way to do it in ZOS-API manual. Do you know how to close the viewer window using Matlab script? Thank you very much.
Solved
Close ToleranceDataViewer window pop out after tolerancing analysis finished
Best answer by David.Nguyen
Hi Yao,
This is an interesting question. I think the Tolerance Data Viewer is a Tool and the one that’s create by the Tolerance tool can’t be access easily through the ZOS-API (at least I did not manage). If it was an analysis you could have found it afterwards with the Get_AnalysisAtIndex().
However, if you don’t want it at all. There’s a property of the Tolerance tool that is called OpenDataViewer. If you set it to False, it shouldn’t open this window. This is the line I would use in Python:
TheTolerance.OpenDataViewer = False
I hope this helps. Take care,
David
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.