I noticed one problem in the files. Your BlueprintVar is not being set at line 35 in the .cpp. It should be:
BlueprintVar = (UClass*)ASD.Object->GeneratedClass;
Also, in the .h you shouldn’t need to specify the class
keyword:
TSubclassOf<class AActor> BlueprintVar;
Do it like this instead:
TSubclassOf<AActor> BlueprintVar;
I’m not sure if that will make any difference but that’s how I’ve done it.
Also, you should not be using AActor, but rather your own class that extends AActor, because you won’t be able to declare the variables you need for your blueprint inside of AActor. I’m working on a more in depth explanation how this all works. I’ll update my original answer when it’s done.