# Export Markups Data (Distance, Angle)?

**URL:** <https://discourse.slicer.org/t/export-markups-data-distance-angle/17363>\
**Category:** Support\
**Created:** [April 28, 2021, 5:31am UTC](https://discourse.slicer.org/t/export-markups-data-distance-angle/17363 "2021-04-28T05:31:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazymark2](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lazymark2/32/10704_2.png) [@lazymark2](https://discourse.slicer.org/u/lazymark2)\
**Post date:** [April 28, 2021, 5:31am UTC](https://discourse.slicer.org/t/export-markups-data-distance-angle/17363/1 "2021-04-28T05:31:17Z")

</div>

Operating system:Linux  
Slicer version:4.11.20210226  
Hi everyone, recently I want to measure the data of crown length and root length. And I used markupsline tool in Markups Mode. But I can’t find a way to export the desired data (distance in this example). So is there a way to directly export the distance of all markupslines? (I need to measure lots of teeth so it will be loads of work if I need to manually record all the data).

![2021-04-28 13-29-55屏幕截图](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a11311400c9cac8c256cc24427d062622a2b4327.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 28, 2021, 6:06am UTC](https://discourse.slicer.org/t/export-markups-data-distance-angle/17363/2 "2021-04-28T06:06:43Z")

</div>

If you save them as in mrk.json format, measurement fields will be saved. You can either programmatically extract that, or use excel as shown in this thread: [Export formats for markups - #13 by lassoan](https://discourse.slicer.org/t/export-formats-for-markups/16278/13)

---

<div class="post-metadata">

**Author:** ![lazymark2](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lazymark2/32/10704_2.png) [@lazymark2](https://discourse.slicer.org/u/lazymark2)\
**Post date:** [April 28, 2021, 7:46am UTC](https://discourse.slicer.org/t/export-markups-data-distance-angle/17363/3 "2021-04-28T07:46:27Z")

</div>

It works, many 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:** [April 28, 2021, 3:37pm UTC](https://discourse.slicer.org/t/export-markups-data-distance-angle/17363/4 "2021-04-28T15:37:20Z")

</div>

A few tips that can make your measurement a magnitude faster:

- If you need to measure the same values in many images then pre-create all the markups using [this script](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#pre-populate-the-scene-with-measurements)
- Copy all measurement results (along with input filename and measurement name) into an Excel sheet with a single keyboard shortcut using [this script](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#copy-all-measurements-in-the-scene-to-excel)
- Position the slice view to the correct cross-section much faster: specify the dental arch using a markups curve node, then reslice along that curve using “Cross-section analysis module” (in SlicerVMTK extension) or straighten the arch using “Curved planar reformat module” (in Sandbox extension).
- Adjust the cross-section by rotating slice intersections by [rotating slice intersections](https://slicer.readthedocs.io/en/latest/user_guide/user_interface.html#slice-views)

See this video of how to set up keyboard shortcuts for defining measurements and copy them directly to Excel:

[![](https://img.youtube.com/vi/_mloKGTtLog/maxresdefault.jpg "Make your 3D measurements faster using Python scripting") ](https://www.youtube.com/watch?v=_mloKGTtLog)
