# Curve Tool Not Producing Measurements

**URL:** <https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884>\
**Category:** Support\
**Created:** [October 27, 2024, 3:30pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884 "2024-10-27T15:30:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![milbelle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/milbelle/32/79220_2.png) [@milbelle](https://discourse.slicer.org/u/milbelle)\
**Post date:** [October 27, 2024, 3:30pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/1 "2024-10-27T15:30:29Z")

</div>

Hello!

I’m quite new to Slicer so please be patient with me! I’m attempting to measure sulcal length on an endocast with the curve tool, however no measurements pop up. Is there something I’m doing wrong? In my attempts to look into it, it seems that the measurements should just appear.

Let me know what you think!

Thanks so much for your help.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 27, 2024, 3:34pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/2 "2024-10-27T15:34:42Z")

</div>

You can choose what measurements are done in Markups module, Measurements section. At some point there were issues with using SlicerMorph customizations removing measurements, but those were fixed in revent Slicer Preview Releases. If you don’t see measurements in Markups module then install the latest Slicer Preview Release.

---

<div class="post-metadata">

**Author:** ![milbelle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/milbelle/32/79220_2.png) [@milbelle](https://discourse.slicer.org/u/milbelle)\
**Post date:** [October 27, 2024, 4:10pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/3 "2024-10-27T16:10:50Z")

</div>

For some reason my mac refused to open the preview release file saying that it can’t verify that the software is free from malware. Any work arounds?

---

<div class="post-metadata">

**Author:** ![milbelle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/milbelle/32/79220_2.png) [@milbelle](https://discourse.slicer.org/u/milbelle)\
**Post date:** [October 27, 2024, 4:21pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/4 "2024-10-27T16:21:22Z")

</div>

I got it to open, but the measurement section is still blank when I use the curve tool.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 27, 2024, 4:54pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/5 "2024-10-27T16:54:59Z")

</div>

Can you save the scene as a .mrb file and share it (upload somewhere - dropbox, onedrive, google drive, … - and post ths link here) so that we can have a look?

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 27, 2024, 5:03pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/6 "2024-10-27T17:03:56Z")

</div>

> [@lassoan](#):
>
> At some point there were issues with using SlicerMorph customizations removing measurements, but those were fixed in revent Slicer Preview Releases.

@lassoan That resolved the following linked issue or it still exists and the issue should remain open?

> <https://github.com/Slicer/Slicer/issues/7239>
>
> \## Summary
> 
> The \[code snippet \](https://projectweek.na-mic.org/PW39\_2023\_Montr…eal/Projects/UndoRedo/)to enable undo/redo for Markups is causing a bug where the measurements for the nodes are no longer displayed, even when measurements are enabled. This occurs for any Markups node when a default node for that class is added to the scene. Removing the default nodes from the scene fixes the bug. This issue was discussed on the Slicer forum \[here\](https://discourse.slicer.org/t/markups-tools-not-measuring-slicer-5-4-0/31609/8).
> 
> \## Steps to reproduce
> 1. Add a line node to the scene to confirm measurements are displayed.
> 
> 2. Run the following snippet:
> \`className = "vtkMRMLMarkupsLineNode"\`
> \`node = slicer.mrmlScene.CreateNodeByClass(className)\`
> \`slicer.mrmlScene.AddDefaultNode(node)\`
> 
> 3. Add another line node to the scene to confirm measurements are no longer displayed.
> 
> 4. To restore measurements, run:
> \`slicer.mrmlScene.RemoveAllDefaultNodes()\`
> 
> \## Expected behavior
> 
> Adding a default node to the scene should not impact unmodified node properties.
> 
> \## Environment
> \- Slicer version: Slicer-5.4.0 and 5.5.0
> \- Operating system: Windows

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 27, 2024, 5:39pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/7 "2024-10-27T17:39:48Z")

</div>

@jamesobutler thanks for finding the relevant ticket.

This issue was “fixed” by [avoiding defining default nodes for markups](https://github.com/SlicerMorph/SlicerMorph/commit/248235d5814e8cb91d709598658971d4753d35f9), but I’ve now submitted a [pull request that fixes the root cause of the issue](https://github.com/Slicer/Slicer/pull/8012).

@milbelle It would help if you could share your scene with us or provide step-by-step instructions for reproducing the issue.

---

<div class="post-metadata">

**Author:** ![milbelle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/milbelle/32/79220_2.png) [@milbelle](https://discourse.slicer.org/u/milbelle)\
**Post date:** [November 24, 2024, 12:59pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/8 "2024-11-24T12:59:37Z")

</div>

Hi! I would like to provide an update. I figured out how to make the curve tool work. I just have to create a line using the line tool first, and then the curve tool will show measurements. Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 24, 2024, 1:04pm UTC](https://discourse.slicer.org/t/curve-tool-not-producing-measurements/39884/9 "2024-11-24T13:04:04Z")

</div>

Curve measurements should work well in the latest Slicer Preview Release. If your find that your still need any workaroundin this Slicer version then let us know. Thanks!
