Clicking accept on a popup when opening a part

So my company has implemented a statement that has to be clicked. Its essentially a big text box that appears when you open certain parts. Now some of my programs are broken because they get stuck at that step. How can I implement code to click accept?

It seems to be the PMI security marking that can be enabled when a part is opened.

Here is the class it comes from

https://docs.plm.automation.siemens.com/data_services/resources/nx/1847/...

Unfortunately, I'm not familiar with that popup.

When you work with files via the API, it is supposed to suppress the display of warnings, errors, and other messages. I'd suggest contacting GTAC to see if this is expected behavior and, if it is, to find a work-around.

Alright, it certainly doesn't suppress this message. It pauses my code and I have to manually click I accept and then it crashes if the next part also has a message. Thanks for the quick reply. I'm not sure how to contact GTAC but I would like to.

They have changed their policy recently; if your company bought NX through a VAR, you should contact the VAR for support (if they don't know the answer, they will contact GTAC on your behalf). If you work for certain large companies that use NX, you might have direct access to GTAC. If you have access to GTAC, you can go to the support center and open a ticket.

https://support.sw.siemens.com/en-US/signin