Scripting Level Variant set

Hi there!

I’m currently creating something using the level variant sets. I’m creating a set of buildings and the player can configurate them but switching between variants. The problem is, because there are many variants of this building, I had to set up a lot of assets (which are all in blueprints). The player also has the ability to move, rotate etc the building using a gizmo. My problem is that this is very slow because when moving you are moving all variants as well.
I tried to script switching between actors by destroying and spawning but for some reason the nodes used in the unreal documentation aren’t there. Does anyone know how or where i can find them or can fix this?
I want to spawn actors and add them to the variant set in runtime. Is this possible and how would I go about his?
Thanks for your reaction!
This is the documentation I mentioned: Scripting the Variant Manager Setup | Unreal Engine 4.26 Documentation

Guido