How do I fix the screen while running a macro?

Hello

Is it possible to fix the screen while running a Solidworks macro?

I know it's possible in Excel, but with SW I'm stuck.

Thank you

Hello

Can you specify your need please?

I don't really see the point of doing this because until your macro is finished, you can't manipulate SW.

Kind regards

1 Like

Hello

The Create a copy of one of the MEP pages macro saves it as a PDF and then deletes it, then a copy of another page saves it as DXF and deletes it.

I would like to know if it was possible to freeze the screen for more conviviality, so as not to see these pages that appear and close.

Kind regards 

Hello

The best is perhaps to work on an SW in invisible mode, see https://stackoverflow.com/questions/37488355/execute-solidworks-in-background-and-exit-with-vba-macro

Kind regards

1 Like

D.Roger,

With this solution, I am forced to open another Solidworks. While I am already working on the MEP.

A good lead but not suitable in this specific case.

Kind regards

To my knowledge, there is no SW API to do this, to see if it is feasible via the standard Windows APIs, HERE and ICI tracks.

Kind regards