TextEntity Commitchanges return false c#

Hi, this is my code

TextEntity textentity = obj.Geometry as TextEntity;
 str = textentity.Text;
textentity.Text = str + "aa";
var result = obj.CommitChanges();
one_char = true;
//
//
//      Doing other jobs
//
//
if (one_char)
  {
       TextEntity textentity2 = obj.Geometry as TextEntity;
        textentity2.Text = "R";
        var result = obj.CommitChanges();
        one_char = false;
   }

doc.Views.Redraw();

The first obj.CommitChanges(); works good, but the second obj.CommitChanges(); always return false.

Hi @gustavo.uzcategui,

That should work. Is this in Rhino 6?

Hi, Thanks, I solved