What's wrong with this code?

Found an answer in the thread below.

Instead of doing

Objects.Add(newcomponent);

, do

AddObject(newcomponent,false);

That’s it.
dynamicallygenerate.gh (6.2 KB)