How to export a 3d map model by clicking a widget button during runtime on UE5?

I’m developing a project in UE5 and I wanted to export a 3d map model by clicking a widget button during runtime, is it possible to do this? and if so how?