How to store a procedural mesh in a variable

Hi,

I’m importing data and create a procedural mesh out of it. That all works fine as long as I have an actor Blueprint with a Procedural Mesh Component in it and use that Proc-Mesh-Component as my Target for CreateMeshSection.

For a couple of reasons I would like to store that created mesh in a variable.
So if I create a variable of type Procedural mesh an use it as Target for CreateMeshSection the variable will always be empty. It is also not possible to first build the Proc-Mesh in my scene and then store that in a Procedural Mesh variable.

I tried Blueprint and C++.

Is that simply not possible or has anyone achieved that and could help?