# Can I export the data for multiple points at once?

**URL:** <https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189>\
**Category:** Support\
**Tags:** file-export, markups-fiducials\
**Created:** [March 17, 2025, 8:35pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189 "2025-03-17T20:35:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MIZ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miz/32/79748_2.png) [@MIZ](https://discourse.slicer.org/u/MIZ)\
**Post date:** [March 17, 2025, 8:35pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/1 "2025-03-17T20:35:37Z")

</div>

I am landmarking approximately 44 points in a mesh. Exporting the x,y,z coordinates into an .fcsv file is extremely laborious. Is there any way to export the data for all 44 points simultaneously? Also, it would be great if when the data is exported it would go into a single .fcsv file, but that does not seem to be possible.

---

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [March 19, 2025, 7:13am UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/2 "2025-03-19T07:13:51Z")

</div>

Hi,  
Try this code

```auto
markupsNode = getNode("yourMarkupsNodeName")
markupsArray = slicer.util.arrayFromMarkupsControlPoints(markupsNode)

```

In here, `markupsArray` is numpy array easy to export as file

I hope it is help to you.

---

<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:** [March 19, 2025, 4:25pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/3 "2025-03-19T16:25:04Z")

</div>

> [@MIZ](#):
>
> Exporting the x,y,z coordinates into an .fcsv file is extremely laborious

It is a single-click. right click and export as. I don’t think it can be made any more simpler.

---

<div class="post-metadata">

**Author:** ![MIZ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miz/32/79748_2.png) [@MIZ](https://discourse.slicer.org/u/MIZ)\
**Post date:** [March 19, 2025, 10:05pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/4 "2025-03-19T22:05:11Z")

</div>

I need to export multiple markups (currently 44 points), but the ‘Export to File’ feature only works for individual markups/points. This means I cannot export all of my desired .fcsv files at once. Instead, I am currently exporting 44 individual .fcsv files, one for each point. Is there a way to export all .fcsv files at once or to combine all the markups/points into a single .fcsv file?

(Clarifying my previous post, thank you)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 19, 2025, 10:37pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/5 "2025-03-19T22:37:35Z")

</div>

You can add all the points to the same Point List and then they will all export to the same file.

---

<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:** [March 20, 2025, 6:42am UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/6 "2025-03-20T06:42:34Z")

</div>

> [@MIZ](#):
>
> I am currently exporting 44 individual .fcsv files, one for each point.

Is there a reason why you are doing this? I mean pointLists can contain an arbitrary number of control points. Don’t create new pointList objects, just keep adding the points to the existing one, and you will end up with a single object to save and not need to merge things later.

---

<div class="post-metadata">

**Author:** ![MIZ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miz/32/79748_2.png) [@MIZ](https://discourse.slicer.org/u/MIZ)\
**Post date:** [April 6, 2025, 9:51pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/7 "2025-04-06T21:51:14Z")

</div>

When I try to export, I can only do one point at a time, I am attaching an image.

 ![Screenshot 2025-04-06 144119](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e250cb119276f99ed65a02133db198dc762beefa.png)  
Additionally, under “Data” when I do highlight multiple points, the option to export does not populate when I right click.

---

<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 6, 2025, 10:37pm UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/8 "2025-04-06T22:37:13Z")

</div>

That because you have created 5 pointList objects each of which has a single point in. I am not sure what your use case is, but I assume want to have all those 5 points in **single** pointList object (e.g., just F\_1).

I think you will benefit reviewing our Markups tutorial: [Tutorials/Markups\_1 at main · SlicerMorph/Tutorials · GitHub](https://github.com/SlicerMorph/Tutorials/tree/main/Markups_1) carefully.

Regardless, if that’s what you want (i.e., 5 separate files with one point in each), you can use standard Save (CTRL+S) and choose which ones to save. Export to file is meant to work on one file at a time.

---

<div class="post-metadata">

**Author:** ![MIZ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miz/32/79748_2.png) [@MIZ](https://discourse.slicer.org/u/MIZ)\
**Post date:** [July 2, 2025, 1:13am UTC](https://discourse.slicer.org/t/can-i-export-the-data-for-multiple-points-at-once/42189/9 "2025-07-02T01:13:35Z")

</div>

Thank you! My confusion was cleared.
