Import Actors from Text by Blueprints/C++

Look at this UUnrealEdEngine::edactCopySelected | Unreal Engine Documentation