# TextEntity Commitchanges return false c#

**URL:** <https://discourse.mcneel.com/t/textentity-commitchanges-return-false-c/85860>\
**Category:** Rhino Developer\
**Created:** [July 8, 2019, 9:10am UTC](https://discourse.mcneel.com/t/textentity-commitchanges-return-false-c/85860 "2019-07-08T09:10:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavo.uzcategui](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gustavo.uzcategui/32/310050_2.png) [@gustavo.uzcategui](https://discourse.mcneel.com/u/gustavo.uzcategui)\
**Post date:** [July 8, 2019, 9:10am UTC](https://discourse.mcneel.com/t/textentity-commitchanges-return-false-c/85860/1 "2019-07-08T09:10:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alain](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alain/32/512812_2.png) [@Alain](https://discourse.mcneel.com/u/Alain)\
**Post date:** [July 10, 2019, 4:36am UTC](https://discourse.mcneel.com/t/textentity-commitchanges-return-false-c/85860/3 "2019-07-10T04:36:07Z")

</div>

Hi @gustavo.uzcategui,

That should work. Is this in Rhino 6?

---

<div class="post-metadata">

**Author:** ![gustavo.uzcategui](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gustavo.uzcategui/32/310050_2.png) [@gustavo.uzcategui](https://discourse.mcneel.com/u/gustavo.uzcategui)\
**Post date:** [July 10, 2019, 6:25am UTC](https://discourse.mcneel.com/t/textentity-commitchanges-return-false-c/85860/4 "2019-07-10T06:25:52Z")

</div>

Hi, Thanks, I solved
