Is it possible to convert a procedural mesh into a static mesh?

open the viewport, select multiple procedural mesh and then press create static mesh. Done.

But How do i do that using blueprint ?