Duct offset from a desired place

Hai.

I want to tag duct instead of using reference level, from desired place.
For example : from the ceilings to the center of duct.
you have no option in revit as far as i have known. because duct connected with the reference level.
can u someone help me out of share a dynamo code.
Thans a lot.