Netgen snapshot from python

Hi,
in netgen, there is the posibility to save a snapshot as jpg.
Can I also use this in a python script?

thx,
Jan

Hi, Jan yes, in the menu <> you will see the choice <<Snapshot…>> otherwise maybe a snapshot from your keyboard (button PrtScn) would possibly work for you? It depends from what quality and for what reason you want use it, best M.

Hi Jan,

there is a “SnapShot” function available (since November 9th).
If you run your python script with Netgen, you can use it the following way:

import ngsolve.internal
ngsolve.internal.SnapShot("foo.bmp")

Best regards
Christoph