Esto es mas facil
CreatePrim "Text", "NurbsCurve"
Create2DSkeleton -5, 0, 0, 5, 0, 0, 0, 0, 0, 4
SetValue "bone.bone.primary_icon", 7
SetValue "root.Name", "StartRuler"
SetValue "StartRuler.bone.Name", "Ruler"
SetValue "StartRuler.eff.Name", "EndtRuler"
AddExpr "Ruler.bone.length"
SetExpr "Ruler.bone.length", "ctr_dist (StartRuler., EndtRuler.)"
oDistancia = GetValue ("Ruler.bone.length")
SetValue "text.text.text", oDistancia