Revit.GeometryReferences.Element to Autodesk.Revit.DB.Reference

working on a dimensioning script, unfortunately the named references in the family instance are a quarter inch too wide on each side. I’ve extracted the surfaces I’m interested in and have managed to get
Revit.GeometryReferences.ElementFaceReference
from them, but all the nodes I’m aware for dimensing seem to want
Autodesk.Revit.DB.Reference
Is there a way to convert one to the other?

I guess you have problem same with me 2 year ago , it resolved in here :