Copying elements from linked file, but instances not showing up (only points)

Hello,
So I’ve made a script copying elements from a linked file and assigning some parameters values.
My problem is that the copied instances are not showing up, only points:

In this case I’m copying doors, do you think it might be a problem of host-based family?

Side question: is there any way to somehow automatically assign hosts to the created instances?

Thanks in advance!

Creating openings after architecture - Copy.dyn (810.2 KB)