# Can't add measurements to the closed curve

**URL:** <https://discourse.slicer.org/t/cant-add-measurements-to-the-closed-curve/37286>\
**Category:** Support\
**Created:** [July 9, 2024, 3:09pm UTC](https://discourse.slicer.org/t/cant-add-measurements-to-the-closed-curve/37286 "2024-07-09T15:09:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Nobre\_Menezes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miguel_nobre_menezes/32/77210_2.png) [@Miguel\_Nobre\_Menezes](https://discourse.slicer.org/u/Miguel_Nobre_Menezes)\
**Post date:** [July 9, 2024, 3:09pm UTC](https://discourse.slicer.org/t/cant-add-measurements-to-the-closed-curve/37286/1 "2024-07-09T15:09:45Z")

</div>

I’m trying to add measurements to the closed curve markup:

```auto
> # Create a new measurement instance
> 
> last_one = slicer.vtkMRMLMeasurementLength()
> 
> # Configure the new measurement
> 
> last_one.SetName("last_one")
> 
> last_one.SetUnits("mm")
> 
> last_one.SetValue(80.00) # Set the value
> 
> # Add the new measurement to the closed curve node
> 
> cc.AddMeasurement(last_one)

```

But every time I change the enabled status, by toggling or untoggling on the list, the value is gone. I believe the issue may lie with the observers, since they are different in existing measurements. But I cannot get them to change…
