Enable/Disable the "Display in Analysis Mode" icon on catia V5R19 via a macro

Hi all

I'm looking to make a macro that would allow me to enable or disable the icon or checkmark in the "Display in analysis mode" configuration option on Catia V5R19 or higher.

I tried to go through the macro recorder, but no result.

Regards.