Solved

How to open Merit Function Editor window with a macro.

  • 5 July 2022
  • 1 reply
  • 86 views

Userlevel 1

Hello, I am writing a macro to open up all the windows I am interested in for a project I am doing.  I have figured out how to open up analysis windows, however I have not figured out how to open the merit function editor window.  How can I do this?

Also, a less important bonus question, is there a way to dock windows in a certain way from a macro?

icon

Best answer by David.Nguyen 6 July 2022, 12:48

View original

1 reply

Userlevel 7
Badge +2

Hi Monte,

 

To the best of my knowledge, this is not possible with a ZPL macro. The ZOS-API would allow it since the editors have methods such as ShowMFE() or HideMFE() to display or hide said editor in the user interface. In an interactive extension, you would simply type:

TheSystem.MFE.ShowMFE()

 

In the same spirit, you may be interested by this post about sorting the Merit Function operands by order of contribution.

For the bonus question, unfortunately, I don’t think there’s a way to arrange your windows programatically at the moment, but I could be wrong.

Take care,

 

David

Reply