Fixing "Grid is slightly off axis"

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

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

thanks for fast reply, but no it doesnt

try list flatten…

1 Like