# Place family instance type based on IF block

**URL:** <https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615>\
**Category:** Revit\
**Created:** [February 25, 2019, 2:43pm UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615 "2019-02-25T14:43:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Hegg](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Erik\_Hegg](https://forum.dynamobim.com/u/Erik_Hegg)\
**Post date:** [February 25, 2019, 2:43pm UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615/1 "2019-02-25T14:43:24Z")

</div>

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…

 ![Example_eletrical](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/7/d759537587af7eb37bdd01bdfae95ae9c019530c.png)

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.

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [February 25, 2019, 2:55pm UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615/2 "2019-02-25T14:55:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Erik\_Hegg](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Erik\_Hegg](https://forum.dynamobim.com/u/Erik_Hegg)\
**Post date:** [February 25, 2019, 6:41pm UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615/3 "2019-02-25T18:41:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [February 26, 2019, 6:42am UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615/4 "2019-02-26T06:42:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![steinah6](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@steinah6](https://forum.dynamobim.com/u/steinah6)\
**Post date:** [June 3, 2019, 7:37pm UTC](https://forum.dynamobim.com/t/place-family-instance-type-based-on-if-block/32615/5 "2019-06-03T19:37:57Z")

</div>

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.
