Solved

Close ToleranceDataViewer window pop out after tolerancing analysis finished

  • 4 March 2022
  • 2 replies
  • 105 views

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.

icon

Best answer by David.Nguyen 4 March 2022, 15:15

View original

2 replies

Userlevel 7
Badge +2

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

Thank you very much, David. That is exactly the answer I am looking for.

Reply