# Path Curve tangential to the sweep profile help needed

**URL:** <https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613>\
**Category:** Uncategorized\
**Created:** [September 27, 2021, 3:44pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613 "2021-09-27T15:44:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![einar.kretzler](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@einar.kretzler](https://forum.dynamobim.com/u/einar.kretzler)\
**Post date:** [September 27, 2021, 3:44pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/1 "2021-09-27T15:44:27Z")

</div>

Hello  
i want to sweep a loaded profile along a path that i choose in revit. I read and so in some tutorials that i have to rotate the profile perpendicular to the line it should follow. But my script seems to be wrong because i always get the warning from my script when selecting a horizontal line. A vertical line is working. Any idea where i am stuck?  
[solidbysweep.dyn](https://forum.dynamobim.com/uploads/short-url/8JsnLTjD8CyPL86upfdbI5drwte.dyn) (46.1 KB)

Warnung:Solid.BySweep fehlgeschlagen.  
Unable to update solid byWarnung:Solid.BySweep fehlgeschlagen.  
Unable to update solid by sweep : PATH\_TANGENT – Path Curve tangential to the sweep profile sweep : PATH\_TANGENT – Path Curve tangential to the sweep profile

 ![sweep](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/ad23efe58b5a216ba0a0f25143a5518e5844f93a.jpeg)

---

<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:** [September 27, 2021, 8:16pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/2 "2021-09-27T20:16:31Z")

</div>

Try using a geometry.Transform method to push the profile geometry into position on the coordinate system pulled from the path. Otherwise the rotation angle will need to be dynamic relative to the direction of the path.

---

<div class="post-metadata">

**Author:** ![einar.kretzler](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@einar.kretzler](https://forum.dynamobim.com/u/einar.kretzler)\
**Post date:** [September 28, 2021, 10:49am UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/3 "2021-09-28T10:49:05Z")

</div>

Thanks a lot jacob, but i can´t get it to work.  
Can you create an example perhaps or get my code running? Or do you have a hint for a tutorial on doing this?  
Thanks in advance!

---

<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:** [September 28, 2021, 12:29pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/4 "2021-09-28T12:29:04Z")

</div>

1. Instead of Curve.PlaneAtParameter, use a Curve.CoordinateSystemAtParameter.
2. Use a Geometry.Transform node to push the profile curves to the the Resulting coordinate system.
3. Use the transformer curves as the profile for the Solid.BySweep node.

---

<div class="post-metadata">

**Author:** ![einar.kretzler](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@einar.kretzler](https://forum.dynamobim.com/u/einar.kretzler)\
**Post date:** [September 28, 2021, 1:21pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/5 "2021-09-28T13:21:25Z")

</div>

Thanks, i´ll give it a try Jacob.  
Sorry as a Beginner to Dynamo it is a bit confusing

---

<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:** [September 28, 2021, 1:35pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/6 "2021-09-28T13:35:35Z")

</div>

It can take some time but once you get it things will click quite quickly. Just running someone else’s graph or rebuilding graphs from images on the web won’t take you very far though - there has to be some degree of trial and error to get the good growth.

---

<div class="post-metadata">

**Author:** ![einar.kretzler](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@einar.kretzler](https://forum.dynamobim.com/u/einar.kretzler)\
**Post date:** [September 28, 2021, 5:07pm UTC](https://forum.dynamobim.com/t/path-curve-tangential-to-the-sweep-profile-help-needed/68613/7 "2021-09-28T17:07:01Z")

</div>

Thanks a lot i think that was the trick 🙂
