# How do i rotate 90 degrees

**URL:** <https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343>\
**Category:** Geometry\
**Tags:** civil3d\
**Created:** [June 2, 2020, 10:38pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343 "2020-06-02T22:38:30Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 2, 2020, 10:38pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/1 "2020-06-02T22:38:30Z")

</div>

I need to create line at 60 ft interval along a polyline.  
line need to be at 90 degrees to the polyline.  
I have tried various rotate nodes.  
to no avail.

 ![rotate](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5f06de6de7d22936fb30b15a2deb7a3e52f0339e.png)  
 ![rotate_dwg](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e714bcea4e03ba29e408a2907c796a7fe26bd4e.jpeg)

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [June 3, 2020, 1:38am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/2 "2020-06-03T01:38:29Z")

</div>

Why not just translate the end point and create the line in the correct direction rather than rotation?

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 3, 2020, 1:48am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/3 "2020-06-03T01:48:47Z")

</div>

Can you show me an example of that.  
Sorry  
I am very new at Dynamo  
Thank you for your reply

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 3, 2020, 1:58am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/4 "2020-06-03T01:58:11Z")

</div>

[working.dyn](https://forum.dynamobim.com/uploads/short-url/Ajcj1zYTOKxofM15yWECYfTqwGk.dyn) (35.0 KB)  
here is the dyn file for your review

---

<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:** [June 3, 2020, 2:38am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/5 "2020-06-03T02:38:52Z")

</div>

Perhaps those nodes would help: Curve.CoordinateSystemAtParameter  
Geometry.Transform

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 3, 2020, 4:15am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/6 "2020-06-03T04:15:00Z")

</div>

Thank you Jacob  
I’m going to try a math function

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 3, 2020, 5:42am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/7 "2020-06-03T05:42:02Z")

</div>

> [@richsurveyor](#):
>
> I’m going to try a math function

Why do you need math function for simple task?

> [@richsurveyor](#):
>
> I need to create line at 60 ft interval along a polyline.  
> line need to be at 90 degrees to the polyline.

Image which you posted looks like you already done that. 90 degree to polyline.

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

What is your end goal?

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 3, 2020, 5:52am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/8 "2020-06-03T05:52:30Z")

</div>

That image is the end goal  
But I did it in civil 3d.  
If you run the attached dyn you will see the lines at 60 ft intervals are in the direction of the polyline.  
I need the vector to be rotated

---

<div class="post-metadata">

**Author:** ![Ge0rges](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Ge0rges](https://forum.dynamobim.com/u/Ge0rges)\
**Post date:** [June 4, 2020, 12:02am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/9 "2020-06-04T00:02:37Z")

</div>

Hi!  
Here’s a try.  
But it only works for simple polylines (no arcs).

 ![working_2020-06-03_07-51-18](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/c/3c7332161eba26e610dceb49de323e49d7f53d5c.png)

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 12:16am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/10 "2020-06-04T00:16:26Z")

</div>

Thank you for taking the time to look at it  
I’ll give it a try

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 1:58am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/11 "2020-06-04T01:58:00Z")

</div>

does not work.  
ill keep trying

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 4, 2020, 3:30am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/12 "2020-06-04T03:30:38Z")

</div>

> [@richsurveyor](#):
>
> does not work.

Why it doesn’t work for you? I just tried @Ge0rges method it does work for me :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2dfeb67359f08205baaf297da403b1a3cf94313.png) ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/16c8b238bb2337b10684bccd8d101fa4815dee09.png)  
[working\_.dyn](https://forum.dynamobim.com/uploads/short-url/zzFmTQzrBcDZ8UpZb3iXZqqpS7a.dyn) (49.3 KB)

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 4:06am UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/13 "2020-06-04T04:06:21Z")

</div>

Thank you  
I’ll try again.  
I was getting lines that were not 90 degrees from polyline

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 2:25pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/14 "2020-06-04T14:25:21Z")

</div>

Ge0rges  
This is the solution  
Thanks again for taking the time

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 2:26pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/15 "2020-06-04T14:26:22Z")

</div>

Thank you Kulkul for your input  
it sure does work

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 4, 2020, 2:30pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/16 "2020-06-04T14:30:54Z")

</div>

> [@richsurveyor](#):
>
> it sure does work

Then mark the post as solved.

---

<div class="post-metadata">

**Author:** ![richsurveyor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/richsurveyor/32/97230_2.png) [@richsurveyor](https://forum.dynamobim.com/u/richsurveyor)\
**Post date:** [June 4, 2020, 2:35pm UTC](https://forum.dynamobim.com/t/how-do-i-rotate-90-degrees/51343/17 "2020-06-04T14:35:00Z")

</div>

done
