And here is the one I am working on now to try and dimension from a floor edge to a grid line

```
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
from Revit.Elements import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
line = UnwrapElement(IN[0]).GeometryCurve
grid = UnwrapElement(IN[1])
elements=(IN[2])
dim = 0
geomopt=Options()
geomopt.ComputeReferences=True
geomopt.IncludeNonVisibleObjects=True
geomopt.View=doc.ActiveView
refg = []
for i in grid:
r = i.get_geometry(geomopt)
[refg.append(j.Reference) for j in r if str(j).contains('line')
for j in elements:
elementsRef.Append(element)
dim = []
TransactionManager.Instance.EnsureInTransaction(doc)
for i,j,k in zip(refg,elementsRef,IN[0]):
refarr = ReferenceArray()
refarr.Clear()
refarr.Append(i)
refarr.Append(J)
dim.append(doc.Create.NewDimension(doc.ActiveView,k.ToRevitType(),refarr))
TransactionManager.Instance.TransactionTaskDone();
OUT = dim
```

It is actually a variant of something you posted on another discussion

Any help from you at all would be greatly appreciated