# Renaming fiducial control points in the slice view window

**URL:** https://discourse.slicer.org/t/renaming-fiducial-control-points-in-the-slice-view-window/24922
**Category:** Support
**Created:** [August 25, 2022, 2:12pm UTC](https://discourse.slicer.org/t/renaming-fiducial-control-points-in-the-slice-view-window/24922 "2022-08-25T14:12:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AMK](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AMK](https://discourse.slicer.org/u/AMK)
#### Post date: [August 25, 2022, 2:12pm UTC](https://discourse.slicer.org/t/renaming-fiducial-control-points-in-the-slice-view-window/24922/1 "2022-08-25T14:12:34Z")

</div>

Hi,

I am trying to automate the naming of the fiducial control points in the slice view window. The user selects the markup points. Now, I am able to rename the points in the data module. But the name remains the same in the slice window. I am aware that I can rename the points in the slice window by right clicking the repective fiducial point and then selecting the “rename the control point…” option. But I can’t find a way to automate this process. Any help is appreciated.

---

<div class="post-metadata">

### Author: ![AMK](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AMK](https://discourse.slicer.org/u/AMK)
#### Post date: [August 26, 2022, 9:08pm UTC](https://discourse.slicer.org/t/renaming-fiducial-control-points-in-the-slice-view-window/24922/2 "2022-08-26T21:08:42Z")

</div>

Hi,

I have been able to move forward with the problem. The following line of code helps in renaming the point.

slicer.modules.markups.logic().RenameAllMarkupsFromCurrentFormat(slicer.mrmlScene.GetFirstNodeByName(“PSIS\_L”))

ALthough it renames the point, but it also adds a suffix to it. For example, I wanted the name to be ‘PSIS\_L’, but it renames it to ‘PSIS\_L-0’.

Does any one knows how I can use the Slicer functionality to rename it exactly as desired.
