Grid dimensions

Hi all, I have created a script to place dimensions by selecting grids , I selected horizontal grids and placed the dimensions but when I want to place dimensions to by selecting vertical grids, the horizontal dimensions not present in Revit and vertical dimensions created .
Please give any advice to show both dimensions

@md.shakeel135 …try to run from Player for avoid elementbinding…

You’ll want to strip any existing bindings out of the file first. f

More info here:
Element Binding in Revit - Share - Dynamo (