# Surface.PointAtParameter - wrong Points were generated

**URL:** <https://forum.dynamobim.com/t/surface-pointatparameter-wrong-points-were-generated/97890>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo\
**Created:** [February 7, 2024, 3:29pm UTC](https://forum.dynamobim.com/t/surface-pointatparameter-wrong-points-were-generated/97890 "2024-02-07T15:29:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [February 7, 2024, 3:29pm UTC](https://forum.dynamobim.com/t/surface-pointatparameter-wrong-points-were-generated/97890/1 "2024-02-07T15:29:26Z")

</div>

Hi,

I picked several points of a surface to project them on an object below.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2bb04cdba1882a56c5f491e2bfb1f6a20e159483.png)  
Though, the points calculated by “Surface.PointAtParameter” do not fit in the borders of the selected surface above. How can i fix that?  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/95b410adb3656db0d448aae3603d9e01de5c0eb9.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:** [February 7, 2024, 4:22pm UTC](https://forum.dynamobim.com/t/surface-pointatparameter-wrong-points-were-generated/97890/2 "2024-02-07T16:22:04Z")

</div>

Surfaces generated by Revit are trimmed, and not bound to their extents. There are MANY ways to get around this, such as Geometry.ClosestPointTo, drawing and intersecting an isocurve, and more. Each has it’s own pros and cons, so without knowing what you’re actually after I can’t really give a solid path forward.

---

<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:** [February 7, 2024, 4:23pm UTC](https://forum.dynamobim.com/t/surface-pointatparameter-wrong-points-were-generated/97890/3 "2024-02-07T16:23:24Z")

</div>

As you can see, `PointAtParameter` is based on the _extents_ of the surface, not the geometry. What you can do instead is to pair the end points and find the displacement you want between the ends and then draw lines between those points to create a reference. Then you just need to break down the lines with the appropriate spacing you’re after.
