# How to rotate a reference plane by dynamo

**URL:** <https://forum.dynamobim.com/t/how-to-rotate-a-reference-plane-by-dynamo/49700>\
**Category:** Revit\
**Created:** [April 23, 2020, 9:01am UTC](https://forum.dynamobim.com/t/how-to-rotate-a-reference-plane-by-dynamo/49700 "2020-04-23T09:01:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![homan1234](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@homan1234](https://forum.dynamobim.com/u/homan1234)\
**Post date:** [April 23, 2020, 9:01am UTC](https://forum.dynamobim.com/t/how-to-rotate-a-reference-plane-by-dynamo/49700/1 "2020-04-23T09:01:00Z")

</div>

Hi all,

I am newbie to Dynamo.

Here I found a question and cannot be solved after check other posts.

May I know how to rotate a reference plane by dynamo.

The reference plane is built by using ReferencePlane.ByStartPointEndPoint to catch mid pt. of two pts and a third pt. However that dynamo block is limited to cut by Z axis(Normal), but I want it to be on XY axis, like a slanted one go along with a face(the 3-points I have).

Does anyone have a solution on it? A big thanks

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [April 23, 2020, 12:24pm UTC](https://forum.dynamobim.com/t/how-to-rotate-a-reference-plane-by-dynamo/49700/2 "2020-04-23T12:24:21Z")

</div>

Hi,

With normal Dynamo nodes (OOTB - Out of the Box) you can only make vertical Reference planes. I have made a Python script which creates a Reference plane by a given Dynamo plane.

You already have the 3 points, so I would suggest to create a Dynamo plane from them using Plane.BestFitThoughPoints and then use my Python script to create Reference planes from them.

 ![Untitled](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b34e5b3d07c3786132999fd8184c18fbb38d155.png)  
[RefPlaneByPlanes.dyn](https://forum.dynamobim.com/uploads/short-url/9Hwr4e47uAK0DFmgg4Zhcl15Yse.dyn) (28.6 KB)

---

<div class="post-metadata">

**Author:** ![homan1234](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@homan1234](https://forum.dynamobim.com/u/homan1234)\
**Post date:** [April 25, 2020, 5:14pm UTC](https://forum.dynamobim.com/t/how-to-rotate-a-reference-plane-by-dynamo/49700/3 "2020-04-25T17:14:03Z")

</div>

Thank you very much, let me try on it!
