# FamilyInstance.ByCoordinates host issue

**URL:** <https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868>\
**Category:** Revit\
**Tags:** workplane\
**Created:** [October 24, 2017, 1:37pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868 "2017-10-24T13:37:34Z")\
**Posts on this page:** 16\
**Page:** 1

<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:** [October 24, 2017, 1:37pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/1 "2017-10-24T13:37:34Z")

</div>

hello dears,  
im trying to make a copy from a family to several location, im getting X,Y,Z needed, but when i use FamilyInstance.ByCoordinates the output have a zero value to Z , if there any answers for that it would be appreciated

thanks

 ![2017-10-24_16-38-10](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7ba9da93309d7ec7ba2c5b932d934689fd6e4363.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 24, 2017, 2:04pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/2 "2017-10-24T14:04:43Z")

</div>

Is it a hosted family? Are you able to manually place a family there?

---

<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:** [October 24, 2017, 2:18pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/3 "2017-10-24T14:18:50Z")

</div>

yes it’s hosted to ceiling, and i don’t know if this valid, if not is there any solution ?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 24, 2017, 2:19pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/4 "2017-10-24T14:19:37Z")

</div>

Springs has a node for placing hosted families.

---

<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:** [October 24, 2017, 2:28pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/5 "2017-10-24T14:28:39Z")

</div>

i’ve tried it , it give me the same result

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 24, 2017, 2:34pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/7 "2017-10-24T14:34:57Z")

</div>

It is possible with the proper inputs. Can you show us what you get with the Springs node?

---

<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:** [October 25, 2017, 5:18am UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/9 "2017-10-25T05:18:34Z")

</div>

![2017-10-25_8-11-30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/618543daeeb98a36cd469696073ad23153658c40.png)  
 ![2017-10-25_8-15-5ffffff7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22a8ba527245783e7a3252a9f57175c2c8477b63.png)

this is how i get the result, it give the points in the right position but no instances, the output from spring node XYZ=0

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 25, 2017, 1:32pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/10 "2017-10-25T13:32:03Z")

</div>

I noticed the host element is a level. Is the original element hosted to the floor level and given an offset? If so, you’ll have to do the same thing with your new instances - host them to the level then apply an offset.

EDIT: Hmmm… it seems like the hosted element does default to Z=0 even though it has a host. I tried using a similar but different method from the API and got the same result. @Dimitar_Venkov, do you have any insight here?

EDIT2: Using the OOTB node FamilyInstance.ByFace still locks the offset at 0 but does at least put the family in the correct location.

---

<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:** [October 25, 2017, 2:11pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/11 "2017-10-25T14:11:46Z")

</div>

the original element hoted on level 01 without any offset, i have select it by **Specify a new Work Plan** window  
 ![2017-10-25_17-08dddddddddddd-13](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/7029e982f678dacd1023add7880a0fcfabda594c.png)

i thinks the idea is we can set location for element in X,Y only, for Z we need **SET HOST** thing, that i dont know what we could use something that work as **Specify a new Work Plan**

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [October 26, 2017, 1:09am UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/12 "2017-10-26T01:09:08Z")

</div>

@khuzaimah.ElecEng you’ll need to share your family for further assistance. There could be multiple reasons why this can’t work and right now we can only guess.

---

<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:** [October 28, 2017, 4:41pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/13 "2017-10-28T16:41:03Z")

</div>

thanks Dimitar,  
i have attache the family …  
[M\_Ceiling Light - Flat Round.rfa](https://forum.dynamobim.com/uploads/short-url/sXS2ChXCT6sPRVh033yo0gFEzU6.rfa) (352 KB)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [October 29, 2017, 12:30pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/14 "2017-10-29T12:30:19Z")

</div>

You can host this face based family on a level or a plane. but the only way to control the elevation is by the built-in “Default Elevation” type property:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/2/b2303672afeafa597aab97e93e1313cc22b64aef.png)

For a more fine-grained approach, you’ll have to rework the family and set up an offset parameter and then modify your script with the new parameter in mind. Alternatively, you could use a different family template for your lights - face based families can sometimes be more of a hassle than they’re worth.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 29, 2017, 2:00pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/15 "2017-10-29T14:00:22Z")

</div>

Hi @khuzaimah.ElecEng

How about creating a dummy face in Revit and delete after the transaction?

 ![Lights](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07de23db637ca4f1feecb138de768c8a7b080474.gif)

---

<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:** [October 29, 2017, 2:29pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/16 "2017-10-29T14:29:51Z")

</div>

hello Kulkul,  
thanks for your answer, im trying to do this, but if you please get screen shot for the whole script. i couldn’t find where do you connect the code block “srf” output.

thanks again

---

<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:** [October 30, 2017, 6:38am UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/17 "2017-10-30T06:38:11Z")

</div>

@Kulkul it’s worked , thats brilliant idea … thank you

---

<div class="post-metadata">

**Author:** ![ahmed.samy661993](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@ahmed.samy661993](https://forum.dynamobim.com/u/ahmed.samy661993)\
**Post date:** [October 27, 2019, 2:34pm UTC](https://forum.dynamobim.com/t/familyinstance-bycoordinates-host-issue/15868/18 "2019-10-27T14:34:20Z")

</div>

i have same problem , i can’t know where he connect the code block “srf” output.  
can you help ?
