Skip to main content
Solved

How to open Merit Function Editor window with a macro.

  • July 5, 2022
  • 1 reply
  • 124 views

Monte

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?

Best answer by David.Nguyen

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

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • Answer
  • July 6, 2022

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