# Surface manual / automatic selected for placing facebased family

**URL:** <https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291>\
**Category:** Geometry\
**Created:** [June 25, 2020, 8:55pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291 "2020-06-25T20:55:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMohlmann](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SMohlmann](https://forum.dynamobim.com/u/SMohlmann)\
**Post date:** [June 25, 2020, 8:55pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/1 "2020-06-25T20:55:29Z")

</div>

hi everyone,

I have made an script that filters the top face of an structural framing element. but when I put this into the familyinstance.byface node it will give an error… when I manually select the faces then its working fine.  
my problem I don’t want to select every time an surface when I also can filter this surface. does anyone have a clue why this isn’t working? both are surfaces and I cant see the difference, see also script.

 ![selecting_2020-06-25_06-48-30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/c/bc357038b369935b3c720c0b993f4ea0ed5830ec.png)

---

<div class="post-metadata">

**Author:** ![andy.leong](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy.leong/32/97352_2.png) [@andy.leong](https://forum.dynamobim.com/u/andy.leong)\
**Post date:** [June 26, 2020, 2:20am UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/2 "2020-06-26T02:20:39Z")

</div>

Whats the error say?  
The watch may look the same but the structure (list structure) of what you feed into FamilyInstance.ByFace may be different.

---

<div class="post-metadata">

**Author:** ![SMohlmann](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SMohlmann](https://forum.dynamobim.com/u/SMohlmann)\
**Post date:** [June 26, 2020, 7:56am UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/3 "2020-06-26T07:56:43Z")

</div>

screenshot of warning when I put filtering top face into the familyinstance.byface node.

 ![error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/a/2accdf347fc3bed6a72815b3b3ce1a3db32dd1ef.png)

---

<div class="post-metadata">

**Author:** ![andy.leong](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy.leong/32/97352_2.png) [@andy.leong](https://forum.dynamobim.com/u/andy.leong)\
**Post date:** [June 26, 2020, 11:29am UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/4 "2020-06-26T11:29:28Z")

</div>

Its saying that basically you’re not putting in the correct format into ‘face’ input

try using Object.Type node in both your manual and your filtered results to see what format your data is.

I have a feeling your manual one is a ‘revit’ face…but you filtered one is a dynamo ‘surface’ or something along those lines…

---

<div class="post-metadata">

**Author:** ![SMohlmann](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SMohlmann](https://forum.dynamobim.com/u/SMohlmann)\
**Post date:** [June 26, 2020, 12:04pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/5 "2020-06-26T12:04:05Z")

</div>

object.type seems the same… or do I use the wrong methode? I have also filtering the surface by topology.faces but did didn’t do the trick.

I have added the .dyn file if you want to look into it. [filter topfaces.dyn](https://forum.dynamobim.com/uploads/short-url/tcNedMqvauBvjdNOTgfKUGBMrXE.dyn) (89.7 KB)

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

---

<div class="post-metadata">

**Author:** ![SMohlmann](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SMohlmann](https://forum.dynamobim.com/u/SMohlmann)\
**Post date:** [June 26, 2020, 12:52pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/6 "2020-06-26T12:52:55Z")

</div>

I do have the solution, I had to use Element.faces instead of Element.geometry and then it works 😉

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

---

<div class="post-metadata">

**Author:** ![rungerer](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rungerer](https://forum.dynamobim.com/u/rungerer)\
**Post date:** [September 29, 2022, 3:40pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/7 "2022-09-29T15:40:06Z")

</div>

Hi. Cool to see someone else trying to select a specific surface from a modeled element. I am having a similar struggle.

I want to be able to select a floor and Dynamo automatically select the bottom surface. (to remove user error) I am having trouble and would love your advice. One difficulty is that the floor is sloped so the bottom surface won’t be pointing 100% down.

I tried picking the bottom face based on the normals. But I got stuck when the normal needs to be -1=\>0 I was not sure how to create a parameter between these two numbers.

Is there an easier way to select the bottom face of a floor?

I’m creating a script that automatically aligns all beams and cols (that terminate on that level) to the bottom of floor.

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

---

<div class="post-metadata">

**Author:** ![rungerer](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rungerer](https://forum.dynamobim.com/u/rungerer)\
**Post date:** [September 29, 2022, 4:11pm UTC](https://forum.dynamobim.com/t/surface-manual-automatic-selected-for-placing-facebased-family/52291/8 "2022-09-29T16:11:38Z")

</div>

Hi I’m interested in understanding this code you made. I tried it on my project and it seems to work really well!

Can you explain the Code Block = 0.5 which you then plug into the U & V parameters of the Surface.PointAtParameter node? Why 0.5? What is that node doing?
