Geolocating components

Hi guys i have created a graph that allows me to click on objects and it tells me when were its sits with the grids however it would need work in real time (auromatic) for it to work right if a window was moved on a wall it wouldn’t update my grid locations within my properties this is more for people within the office who couldn’t use dynamo

Ideally it would want it to run it in the background or having it embedded within the revit template

Etc have a project parameter which is called geolocation and everything an object is place within the project it also shows the project parameters the location of grid like A - 1 And if I was to move the window to A -3 it would change to that

At the moment this graph works when I have dynamo open and it’s on automatic but ideally I would run it once and dynamo is not required