Override DIM tool

Hey all, as is my want I have a sticky problem, I need a flexible linear dimension tool, that allows an override of the size it finds

Expanding on this code from samples, I can find the value in the dimension function, but cannot inject a custom value back into it (read only)

Any leads?

partial class Examples
{
public static Rhino.Commands.Result AddLinearDimension(Rhino.RhinoDoc doc)
{
Rhino.Geometry.LinearDimension dimension;
Rhino.Commands.Result rc = Rhino.Input.RhinoGet.GetLinearDimension(out dimension);
if (rc == Rhino.Commands.Result.Success && dimension != null)
{
if (doc.Objects.AddLinearDimension(dimension) == Guid.Empty)
rc = Rhino.Commands.Result.Failure;
else
doc.Views.Redraw();
}
return rc;
}
}

never mind, figured it out, override the text property.