# FamilyInstance.Bypointinview returns null

**URL:** <https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 1, 2021, 7:12pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616 "2021-06-01T19:12:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jegg](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jegg](https://forum.dynamobim.com/u/jegg)\
**Post date:** [June 1, 2021, 7:12pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/1 "2021-06-01T19:12:58Z")

</div>

I’m trying to write a graph that can insert some detail family’s into a drafting view. I’m using the Clockwork node “FamilyInstance.ByPointinView”, but for some reason it returns null. Does anyone know of a reason it might be doing this?

I’m open to suggestion if you have a better way then using this custom node.

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

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [June 1, 2021, 7:55pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/2 "2021-06-01T19:55:04Z")

</div>

Is that a 3d view you are using?

---

<div class="post-metadata">

**Author:** ![jegg](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jegg](https://forum.dynamobim.com/u/jegg)\
**Post date:** [June 1, 2021, 8:20pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/3 "2021-06-01T20:20:56Z")

</div>

The Revit file only has a drafting view open.

Do I need to do something to call a 2d Dynamo view? or set the Drafting view as active? If I use the “views” node in place of the “Document.Activeview” i get the same result.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [June 1, 2021, 8:53pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/4 "2021-06-01T20:53:59Z")

</div>

Its something i remembered from way ago, its probably solved now.  
forget it

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [June 4, 2021, 12:40pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/5 "2021-06-04T12:40:01Z")

</div>

It works well for me. U have to use Detail Item family for Drafting view.

 ![캡처](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/057746cab48ae32dc741cbb19ad4d28eac800a59.jpeg)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 30, 2021, 8:57am UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/6 "2021-09-30T08:57:21Z")

</div>

Bump.

I am also getting `null`.

 ![Annotation 2021-09-28 090606](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/4/340382f4d5081f7718f4933eb01260c29fecd2fd.png)  
Revit 20 **21**

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [September 30, 2021, 9:02am UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/7 "2021-09-30T09:02:10Z")

</div>

A Door needs a Host.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 30, 2021, 9:04am UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/8 "2021-09-30T09:04:07Z")

</div>

@Marcel_Rijsmus  
Our doors started as Generic Models so they don’t need a host.  
Category was changed afterwards.

---

<div class="post-metadata">

**Author:** ![jegg](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jegg](https://forum.dynamobim.com/u/jegg)\
**Post date:** [September 30, 2021, 5:23pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/9 "2021-09-30T17:23:48Z")

</div>

I never got it working. I have the user insert and place the element first then run the rest of the graph.

---

<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:** [September 30, 2021, 7:13pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/10 "2021-09-30T19:13:35Z")

</div>

`FamilyInstance.ByPointInView` would be for annotation families since they require a view. Model elements use the standard `FamilyInstance.ByPoint`.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [September 30, 2021, 8:22pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/11 "2021-09-30T20:22:48Z")

</div>

@Nick_Boyts  
Do you happened to know why a FamilyInstance.ByPointandLevel would produce an element, not linked to the Level, but the Schedule Level instead?  
And if one uses FamilyInstance.ByPoint would that give me a Level as Workplane?  
R2019/D2.04  
I ran into something weird i think

---

<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:** [September 30, 2021, 8:44pm UTC](https://forum.dynamobim.com/t/familyinstance-bypointinview-returns-null/64616/12 "2021-09-30T20:44:19Z")

</div>

I believe Level vs Schedule Level vs Associated Level would all be based on the element being placed. As far as I’m aware, Schedule Level is specifically for elements that require a level reference but don’t necessarily host to the level.

`FamilyInstance.ByPoint` should be for “point and place” (unhosted) families. If the element is Work Plane hosted then neither `ByPoint` nor `ByPointAndLevel` will assign the level as the (Work Plane) host, but the Schedule Level (and therefore I assume other level reference parameters) would be assigned in the case of `ByPointAndLevel`. I think you’d have to use Python or a custom node for hosted families in order to set the host by level.
