# Place families on Point arrays on surface

**URL:** <https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859>\
**Category:** Revit\
**Created:** [March 9, 2020, 4:45pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859 "2020-03-09T16:45:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kayak85](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@kayak85](https://forum.dynamobim.com/u/kayak85)\
**Post date:** [March 9, 2020, 4:45pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/1 "2020-03-09T16:45:32Z")

</div>

Hi everyone,

I am trying to populate some shelves with A. Bottles and B. Books.

On my workflow I want the flexibility of ‘selecting.Face’ (shelves) to place a ‘Sequence’ of points on which then I can select a family to place on those points.

From the attached image please let me know what I am doing wrong:

A. I am not getting an array of points on the top surface I selected  
B when the family (Generic Bottle) is placed via the Node it is placed at the ‘origin’ of the family with what appears to be an X/Y/Z coordinate of 0 (zero) yet a point is placed at the top shelf (please see blue point on the image attached)

Please advise how to amend my workflow to allow me the flexibility to choose a surface then populate that surface with an array of families

Thanks,  
K

[Place family o ![Place family on Shelf by points on surface with Z point](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/256247239a2648fa5606e10afcffd053ca7b7736.jpeg) n Shelf by points on surface|690x326](https://forum.dynamobim.com/uploads/short-url/f3vSSWV4oVUlq3lL08T71On7QmU.jpeg)

 ![Place family on Shelf by points on surface with Z point and bottle](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/58e0a3f568c237596c3891505ec0fa5ea8903c77.jpeg)

---

<div class="post-metadata">

**Author:** ![wouter.hilhorst](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@wouter.hilhorst](https://forum.dynamobim.com/u/wouter.hilhorst)\
**Post date:** [March 9, 2020, 5:57pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/2 "2020-03-09T17:57:09Z")

</div>

Have you tried a cross product lacing on the point at parameter node

---

<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:** [March 9, 2020, 6:35pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/4 "2020-03-09T18:35:52Z")

</div>

A. Select Face returns a list, which is throwing off the list structure for Surface.PointAtParameter. You either need to use longest lacing on that node or get the singular surface from the list. Unrelated, but your U/V parameters are incorrect as well. PointAtParameter uses values from 0 to 1. As is, the vast majority of your points are outside of your surface.

B. What is the normal placement type of your family (ie. face, workplane, point, etc.)? Does the family utilize an Offset parameter that needs to be adjusted? I’m guessing the family hosts to the level and needs be given an offset.

---

<div class="post-metadata">

**Author:** ![kayak85](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@kayak85](https://forum.dynamobim.com/u/kayak85)\
**Post date:** [March 9, 2020, 7:13pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/5 "2020-03-09T19:13:36Z")

</div>

Hi Nick

-not sure what you mean by using longest lacing

-family is face based

Ideally I need the dynamo workflow to be flexible to be used for populating different shelf families

Thanks

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 9, 2020, 11:52pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/6 "2020-03-09T23:52:12Z")

</div>

> [@kayak85](#):
>
> not sure what you mean by using longest lacing

See this page on the Dynamo Primer for more info on lacing: [What's a List | The Dynamo Primer](https://primer.dynamobim.org/06_Designing-with-Lists/6-1_whats-a-list.html)

It’s likely a good idea to revisit the whole primer from cover to cover as there will be a lot of ‘basic’ info like this which won’t readily be clear otherwise.

> [@kayak85](#):
>
> family is face based

This means you can’t just use a point and get an accurate and well functioning graph. Look into the other methods of placing a family instance by face, such as: [Dynamo Dictionary](https://dictionary.dynamobim.com/#/Revit/Elements/FamilyInstance/Create/ByFace(familyType_FamilyType-face_Surface-location_Point-referenceDirection_Vector)).

Review what Surface.PointAtParameter returns with those values. By the looks of it all but one will not fall in the face.

---

<div class="post-metadata">

**Author:** ![kayak85](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@kayak85](https://forum.dynamobim.com/u/kayak85)\
**Post date:** [March 11, 2020, 10:38am UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/7 "2020-03-11T10:38:54Z")

</div>

Hi Jacob/Nick

Thanks for all your guidance.

I have managed to place the family on the points.

Can you please advise what nodes/workflow I can introduce between selecting the surface and defining the X/Y/Z coordinates of the first point (A range follows as per ‘step’)

Currently I ‘Watch’ the X/Y/Z list that the surface node picks and I manually put that ‘data’ numbers and connect to the point.bycoordinate node.

I tried using this workflow but got a bit confused on the hierarchy…

> [@Get index of a list](https://forum.dynamobim.com/t/get-index-of-a-list/10590/2):
>
> @ramoon.bandeira Something like this? [RepeatCount.dyn](https://forum.dynamobim.com/uploads/short-url/vHvpDFIuu9Hx0lB2o52fvYJZSIx.dyn) (7.4 KB)

The next challenge I have is controling the ‘normal’ of the point to give some families an angle after placement! Any tips?

Thanks,

 ![Place family on Shelf by points](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b2c3cb404761e8fb60b7ab4138ba5b5f9d0fb99.jpeg)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 12, 2020, 8:10am UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/8 "2020-03-12T08:10:55Z")

</div>

> [@kayak85](#):
>
> Can you please advise what nodes/workflow I can introduce between selecting the surface and defining the X/Y/Z coordinates of the first point (A range follows as per ‘step’)

Not sure what you mean by this. Can you post a sketch?

---

<div class="post-metadata">

**Author:** ![kayak85](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@kayak85](https://forum.dynamobim.com/u/kayak85)\
**Post date:** [March 12, 2020, 10:21am UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/9 "2020-03-12T10:21:52Z")

</div>

Hi Jacob,

At the moment I have to select each shelf to get the X/Y and Z coordinates  
Then I manually input those coordinates as per sketch attached to define the placement of points which will host the families

Can I use a flaten.list node and get.atindex node to ‘automate’ the above process?  
As a newbie I can get to grips with managing lists yet 🙂

Thanks,

 ![InkedPlace family on Shelf by points_LI](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/0/e0eea0310a9859a76e25d819fb06c24b7581d937.jpeg)

I hope this helps.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 12, 2020, 2:11pm UTC](https://forum.dynamobim.com/t/place-families-on-point-arrays-on-surface/47859/10 "2020-03-12T14:11:23Z")

</div>

Have you done the Dynamo Primer yet? Most of the concepts needed to resolve your issue are well covered there. Be sure not to skip any exercises even if you don’t think you will need the results, as the methods are the important part not the outcomes.

If you have done this and are still lost look into the `Select Face`node, the `Surface.PointAtParameter` node, the `Geometry.DoesIntersect` node, the `List.FilterByBoolMask` node, and then the `FamilyInstance.ByFace` node.

If your shelving system is well built in Revit via nested parametric parts then likely you can expedite further by getting all shelves as a type and using their location line to find the points.
