# Fixing "Grid is slightly off axis"

**URL:** <https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564>\
**Category:** Revit\
**Created:** [October 15, 2023, 9:51am UTC](https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564 "2023-10-15T09:51:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NERDASORUS](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@NERDASORUS](https://forum.dynamobim.com/u/NERDASORUS)\
**Post date:** [October 15, 2023, 9:51am UTC](https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564/1 "2023-10-15T09:51:47Z")

</div>

Hello

as the title suggests, i want to prepare a script that fixes the “Grid is slightly off axis” warning. what i have figured out until now is:

Get the grids=\>normalize vector=\>create new line=\>get name of old grids =\>remove old grid=\>create grid by line=\>assign name

as you can see from the script above it will delete the old grids, so any dimensions referencing them will also be removed, which is not acceptable.

is there a way to get the rotation of the grid, normalize it and assign a new rotation to the grid?  
all “element.rotation” are not working with grids

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [October 15, 2023, 9:57am UTC](https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564/2 "2023-10-15T09:57:24Z")

</div>

element set / get rotation from genius loci should work on grids

---

<div class="post-metadata">

**Author:** ![NERDASORUS](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@NERDASORUS](https://forum.dynamobim.com/u/NERDASORUS)\
**Post date:** [October 15, 2023, 10:09am UTC](https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564/3 "2023-10-15T10:09:58Z")

</div>

thanks for fast reply, but no it doesnt

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a10ec3d67d48957899f86ffc6233a743e404fb0.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [October 15, 2023, 10:13am UTC](https://forum.dynamobim.com/t/fixing-grid-is-slightly-off-axis/94564/4 "2023-10-15T10:13:33Z")

</div>

try list flatten…

 ![Skærmbillede 2023-10-15 121547](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/096315fd38091a5f82d8152f6482fd52b9345fe2.jpeg)
