# Collect Point of selected element/face

**URL:** <https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [March 16, 2024, 10:29am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136 "2024-03-16T10:29:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 10:29am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/1 "2024-03-16T10:29:09Z")

</div>

Hi All,

I am tring to get points at edge so I can creat a line by point to create Framing which runs around Stair edge

I have select Landing and Stair run one by one as an individual element.

Could you please help me

My stair is in a link model

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 16, 2024, 12:10pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/2 "2024-03-16T12:10:32Z")

</div>

Hi is it this perimeter curve here you want or ??

 ![Skærmbillede 2024-03-16 130824](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f8ab877c0f69e10e12a0de82b5d4ad83a14bb5d.png)

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 12:12pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/3 "2024-03-16T12:12:09Z")

</div>

Hi Mr.@sovitek, yes what you highlighted is correct, i want inner and out edge perimeter/point  
On which i need to make a structure farming to support the stairs

Thanks

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 16, 2024, 12:32pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/4 "2024-03-16T12:32:43Z")

</div>

Hi could you share a rvt only the stair ?

---

<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 16, 2024, 1:04pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/6 "2024-03-16T13:04:10Z")

</div>

Geometry.Explode to get the surfaces from the solid geometry.

Then get the Z the normal at parameter 0.5,0.5 for each surface with a Surface.NormalAtParameter. This is the ‘facing direction’ of each surface.

Pull the Z component of each with a Vector.Z node. This tells us the vertical component of the facing direction. Something with a value of 1 is facing perfectly up - that surface was level. Something with a value of 0 has no slope to it - that surface is vertical and plumb. Something with a value of -1 is perfectly down - that surface is also level.

Then check if that Z value is less than -0.1. This will give us a clue on any surface which is ‘partially facing down’, meaning it is in some way defining the bottom of the stair.

Use that boolean value to filter the original list of surfaces so you only have stuff which faces down.

Take the ‘in’ results into a PolySurface.ByJoinedSurfaces node and disable all other geometry preview to confirm you have the right surfaces. If you caught stuff like riser surfaces decrease the value of -0.1 until it is good for your design. If you wind up without the underside of the run then you have gone too far.

Pull the perimeter curves of the polysurface this list of curves should be the outline drawn above.

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 1:07pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/7 "2024-03-16T13:07:55Z")

</div>

Hi Mr. @jacob.small I will give it a try. and let you know the result

thanks for your insights

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 1:41pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/8 "2024-03-16T13:41:16Z")

</div>

Hi @jacob.small , Thank you very much for your guidance  
i think it worked well and gave me what i needed

I hope i got all the step correct as you mentioned

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

Many thnaks

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 2:39pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/9 "2024-03-16T14:39:14Z")

</div>

Hi @jacob.small @sovitek

I am getting multiple very small lines as we have multiple points at perimeter.

I can sort for one element but as i have multiple element and index value of them is not same it is hard for me to select desire point for multiple elements

Is there any efficient way so i can eliminate multiple line or have less of them

It is giving multiple line at same spot or around

---

<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 16, 2024, 2:58pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/10 "2024-03-16T14:58:46Z")

</div>

Hard to say without seeing the geometry. I am not at my CPU today so I can’t test stuff either.

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 16, 2024, 3:17pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/11 "2024-03-16T15:17:32Z")

</div>

@jacob.small no problem i have shared stair revit file above if you remember this when you’re on your machine

I would love to see better approach by an expert  
Thanks

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [March 16, 2024, 5:35pm UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/12 "2024-03-16T17:35:41Z")

</div>

Hi, you will use a lot of steps to find an automation solution to your problem  
after what Mr. Jacob mentioned  
process of recovering the lower faces  
attached step elimination of the presence of reverse side spoiler

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

 ![reponse 16 Mars_2024-03-16_06-33-41](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7bfd7462775f8c42f825c95064c9b054486d53ec.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/7/e79a72c9a4d368b34859d22e02e03f2f09c559d5.png)

you are left with residual offset junctions to create a uniform polysurface  
Good luck  
Sincerely  
christian.stan

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 17, 2024, 6:15am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/13 "2024-03-17T06:15:05Z")

</div>

Hi @christian.stan Legend,

Always bangs with a efficient approach 🙂

I will try it and get back to you

thanks,  
Vinay

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 17, 2024, 7:04am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/14 "2024-03-17T07:04:41Z")

</div>

I would try as Jacob or Christian…but here i just play araound with a very alternative method…could probably work as well

 ![Skærmbillede 2024-03-17 080245](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fcb9f07da09d95cf6ad0289deaf6253c1bbbf107.png)  
 ![Skærmbillede 2024-03-17 080815](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/ca9e03343f6fb62b0ae6bb7a6c21a2dcaae0b65c.png)

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 17, 2024, 7:58am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/15 "2024-03-17T07:58:07Z")

</div>

Hi @sovitek, I am not able to see the nodes clearly, could you please share a clear snip or dyn file please

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 17, 2024, 8:03am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/16 "2024-03-17T08:03:21Z")

</div>

arhh sorry…It was just a test i didnt save it…

but basicly i just tale the vertical surface and sort by area

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 17, 2024, 8:15am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/17 "2024-03-17T08:15:29Z")

</div>

ahhh, could you name the custom node you used  
it is hard to read, sorry for troubling you

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 17, 2024, 8:20am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/18 "2024-03-17T08:20:12Z")

</div>

yes sure if can remember, cant even see my own image 😉 😉 and you know early sunday morning…

for select link components its genius loci, clockwork for surfaces, and ampersand for unsorted polycurves…try it 😉

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 17, 2024, 8:21am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/19 "2024-03-17T08:21:33Z")

</div>

no probleam Mr @sovitek enjoy your sunday  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![Vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Vinay](https://forum.dynamobim.com/u/Vinay)\
**Post date:** [March 17, 2024, 8:24am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/20 "2024-03-17T08:24:37Z")

</div>

as always legendary @christian.stan , it worked well and i was able to eliminate very small line into a big one solid line  
thanks man 🫡

Just one question it will work for any stair geometry or it will be specific to this one or similar kind of ge

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

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [March 17, 2024, 8:46am UTC](https://forum.dynamobim.com/t/collect-point-of-selected-element-face/99136/21 "2024-03-17T08:46:42Z")

</div>

Hello to different geometry different disposal solution.  
Example: if your risers are slightly inclined they have a Z component on the vector and presto you have to find a new means of elimination  
The solution is everywhere, I don’t believe it  
Sincerely  
christian.stan
