Place family instance type based on IF block

Hello guys!

Firstly, I have an IF block that is “sorting” out if my electrical elements have 1 or 3 poles. I then want to place out different family, based on the number of poles. I thought I could do it like in the picture, but I guess I thought wrong…

Any ideas on how to accomplish this? I have tried a different kind of “use levels” in my list structure, but that did not seem to help.

what is your family’s host type ? and what it’s category ?

For now the category is “Detail Items”, and the element is placed on a drafting view.

try to flatten all the inputs and dont use level, make sure all the input have the same count list

It appears that FamilyInstance.ByPointInView doesn’t support lists of views, only a single view. I’m currently trying to find a way around this, but I don’t know Python well enough.