How to place or instantiate an Actor without using editor?

I think this code can be helpful:

You should spawn this actor and if you want make it visible you should SetStaticMesh().