I worked through this issue some time back and it was working fine.  Hoewver, i am now working on another site and the same code simply does not work.  I can trap the on measure end event.  Get the required info and formulate the new result but nothing changes in the measurement tool.  Has anyone else see this behavior?