FamilyInstance.ByPointInView returning null value

I’m trying to place a family in one view or another but the FamilyInstnce.ByPointInView node seems to have a problem with this.

When I feed my active view directly into the FamilyInstance.ByPointInView node the node works and places a family, but when I use an If node to determine which view I want the family to be placed in the familyInstance.ByPointInView returns a null value.

Can someone help me out with this problem?

It’s probably your list structure. When filtering, you end up with a list containing the view. This, paired with your @L3 point list is going to cause some problems. You need to reduce the view list to a single item. You also might want to flatten your list of points unless you’re going to be placing multiple instances in multiple views.

1 Like