# Create Points from Top Center of 3D Solid

**URL:** <https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073>\
**Category:** Uncategorized\
**Created:** [April 8, 2020, 8:09pm UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073 "2020-04-08T20:09:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CADguy82](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@CADguy82](https://forum.dynamobim.com/u/CADguy82)\
**Post date:** [April 8, 2020, 8:09pm UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/1 "2020-04-08T20:09:18Z")

</div>

Is there a way to obtain x,y,z values from only the center point of the top of a 3d solid? I see the Solid.Centroid, but want the top and not the middle of the geometry. I have a ton of 3D Solids in my drawing.

Any help would be greatly appreciated!

Thanks

Steve Walz

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [April 8, 2020, 9:11pm UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/2 "2020-04-08T21:11:38Z")

</div>

How about try extracting the surface points at the 0.5 parameter for X,Y and filter by surface normals?

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

---

<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:** [April 9, 2020, 12:18am UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/3 "2020-04-09T00:18:08Z")

</div>

Or take the results of the Surface.PointAtParameter into a List.SortByKey where the key is Point.Z, and then a List.LastItem.

---

<div class="post-metadata">

**Author:** ![CADguy82](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@CADguy82](https://forum.dynamobim.com/u/CADguy82)\
**Post date:** [April 19, 2020, 2:36pm UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/4 "2020-04-19T14:36:36Z")

</div>

Thanks @Ewan_Opie and @jacob.small! I’m finally getting back around to this one. Probably pretty basic question here, but I not seeing the answer in my searches. How do i go about extracting just 1 point from each list to create my points from (see screenshot example below). Ultimately, I want to create a ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef92a9813213b608f6d1c0107d0c1a7e16e4dbba.jpeg) point from just the top center of the solid, not all points.

Thanks for the help!

Steve

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [April 19, 2020, 6:21pm UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/5 "2020-04-19T18:21:05Z")

</div>

In the method I describe, the surface normal Vector _( The “I’m facing this way”_) is sorted to find the one which has a positive Z axis value _(“I’m looking up, so I must be on top”)_

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

---

<div class="post-metadata">

**Author:** ![CADguy82](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@CADguy82](https://forum.dynamobim.com/u/CADguy82)\
**Post date:** [April 20, 2020, 10:09am UTC](https://forum.dynamobim.com/t/create-points-from-top-center-of-3d-solid/49073/6 "2020-04-20T10:09:24Z")

</div>

Thanks @Ewan_Opie! I attempted your solution earlier, but just realized that I didn’t have the Level 2 set on the sort and last item list. Setting it to Level 2 worked like a charm! Appreciate all the help!

Thanks

Steve
