# Place family at point

**URL:** <https://forum.dynamobim.com/t/place-family-at-point/39819>\
**Category:** Uncategorized\
**Created:** [August 23, 2019, 11:15am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819 "2019-08-23T11:15:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 23, 2019, 11:15am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/1 "2019-08-23T11:15:37Z")

</div>

Im trying to place family’s based on points. I can place family’s but they didnt come out the way i wanted. The blue dots on the picture are my points. i would like to place a family on this face of the wall aiming to the core of the wall. They currently get placed on the bottom of the wall (correct X and Y coordinate). The rotation is also wrong … The graph i got so far is shown below.

The family i m trying to place: [NLRS\_21\_SF\_FB\_boutanker 1988 M16x140\_VPB.rfa](https://forum.dynamobim.com/uploads/short-url/xUESksGbQ7paeNYVamzSTSixTk0.rfa) (376 KB)  
The script: (Dynamo 2.x) [Forum Family on exterior face point.dyn](https://forum.dynamobim.com/uploads/short-url/wUve8TNCxIbnK9Pd0ZUNSs7vEi7.dyn) (46.8 KB)

Any help is greatly appriciated!

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

---

<div class="post-metadata">

**Author:** ![wusaga](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@wusaga](https://forum.dynamobim.com/u/wusaga)\
**Post date:** [August 23, 2019, 1:42pm UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/2 "2019-08-23T13:42:35Z")

</div>

never got ꟿ FamilyInstance.ByFaceAndPoint to work. Dont know why. If you find a solution please message me.

With the 3 other Nodes you positioning the Family. But you can rotate your FamilyInstance after  
 ![Unbenannt](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6d4cbc24a9e1cd5f39dd63b108fe2e1d2f290648.png)

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 23, 2019, 1:51pm UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/3 "2019-08-23T13:51:15Z")

</div>

@wusaga thanks for your reply, in this example i used only 1 point. but for my project i need to work with 100’s of points on different walls, with different family instances and their rotations.

Shouldnt it be possible to place a family instance at face / host / point ? The red circle is where my script placed it. the blue dot inside the greencircle is the point where my family instance should be placed. (i placed this one manual to show what i’m trying to achieve.)

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

---

<div class="post-metadata">

**Author:** ![Akli.baliche](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akli.baliche](https://forum.dynamobim.com/u/Akli.baliche)\
**Post date:** [August 23, 2019, 2:45pm UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/4 "2019-08-23T14:45:48Z")

</div>

I think the HostObject.ExteriorSurface node does not recover the surface of your walls.  
I add some knots to find what these surfaces correspond to.  
[Forum Family on exterior face point.dyn](https://forum.dynamobim.com/uploads/short-url/kIVjc0IXZlvuzgOzIEBXQ8SPF6H.dyn) (33.2 KB)

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 5:51am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/5 "2019-08-26T05:51:23Z")

</div>

Sorry for the late Reply… It seems to work! i dont really understand the graph but i m gonna look into it 🙂

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 6:37am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/6 "2019-08-26T06:37:16Z")

</div>

I did find something that could go wrong in your approach:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/a/2aa406b27c440cd41a4a2a6895f429f0486a859e.png)  
The red Node compares surface area. but what if the area of interior and exterior side are the same?  
I replaced it with the green node… but my question is are the Surfaces always ordered the same?  
Is surface at index 1 always the exterior side?

See attached image below, i marked the exterior side with green and red lines. The green one is good and the red ones are placed wrong. The family is to long to fit the wall, this is just because its easyer to see whats going wrong until the script is flawless 🙂

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

* * *

Would u know how to place family’s on face next to / above a opening in wall? I dont know how to get acces to lines or points of the wall opening / window.

This is the topic:

> [@Getting points at corner of openings in wall e.g. door / window](https://forum.dynamobim.com/t/getting-points-at-corner-of-openings-in-wall-e-g-door-window/39828):
>
> Hi all, I would like to get points at the corner’s of openings in a wall. caused by doors/ windows. (not edited profile) Anyone knows how to get those?

---

<div class="post-metadata">

**Author:** ![Akli.baliche](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akli.baliche](https://forum.dynamobim.com/u/Akli.baliche)\
**Post date:** [August 26, 2019, 7:23am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/7 "2019-08-26T07:23:45Z")

</div>

HELLO  
Several ways to do it, you want to recover the 8 points?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/288c2f918f028512002128d9e6a3059c17cfc85b.png)

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 7:32am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/8 "2019-08-26T07:32:22Z")

</div>

How do you keep association to the wall the window is in?

If you draw for example 3 walls, and 1 wall has a window. i want to place family’s on the walls face along the window.

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

My latest version of the script:  
[Forum 2.dyn](https://forum.dynamobim.com/uploads/short-url/7f1dTWEtIpHy4wuE9LrGpBB4whf.dyn) (85.5 KB)

---

<div class="post-metadata">

**Author:** ![Akli.baliche](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akli.baliche](https://forum.dynamobim.com/u/Akli.baliche)\
**Post date:** [August 26, 2019, 7:51am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/9 "2019-08-26T07:51:42Z")

</div>

Many ways too  
One of the ways:

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/73122eb003a9b4cd63321eaa59c00309906185b8.png)

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 8:26am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/10 "2019-08-26T08:26:45Z")

</div>

i m getting closer and closer to a solution but its still hard. If i had a wall with 2 windows, this method gives me 24 points. but i only want the 4 points per window on the exterior face off the wall.  
This graph is alot harder then i first thought 😕

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

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 9:16am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/11 "2019-08-26T09:16:07Z")

</div>

I managed to get points on the Exterior surface now. by using HostObject.ExteriorSurface and then Topology.Vertices.

The next challange is: how to get the “Inner points”.

It seems they are not ordered logical. see the 2 images below.  
How can i filter the corners of the wall out ? so i keep only the points that represent the corners of openings.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/9/a9c0b669e9564e0235e3000fc01c16b53f0dd1e8.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/060d579d610e88ecb36a8f93e8e10b5dadeecfe5.png)

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [August 26, 2019, 9:28am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/12 "2019-08-26T09:28:43Z")

</div>

@Akli.baliche Thx for pushing me the right way 🙂  
Here the final solution… it only works if the windows / doors are completely inside the wall.  
in my case they are because its a precast concrete panel.

The final solution:

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

---

<div class="post-metadata">

**Author:** ![Akli.baliche](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akli.baliche](https://forum.dynamobim.com/u/Akli.baliche)\
**Post date:** [August 26, 2019, 10:01am UTC](https://forum.dynamobim.com/t/place-family-at-point/39819/13 "2019-08-26T10:01:34Z")

</div>

If not:  
-To rent the doors and windows  
-Search the dimesions of these

- with a little geometry, you move the point of the hiring with the dimensions and the placement vector
