Auto-dimensioning from Atom to Grid line

Sure, Here is the Dynamo Script I am trying to get to work. Unfortunately I am not able to upload my Revit Sample sheet as forum is telling me the file is too big even when I zipped it??
AutoDimensioning.dyn (77.1 KB)