# Export Segmentation in DICOM-RT format in ver 5.6.1

**URL:** <https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format-in-ver-5-6-1/35595>\
**Category:** Support\
**Created:** [April 18, 2024, 11:36am UTC](https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format-in-ver-5-6-1/35595 "2024-04-18T11:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MASAMA](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MASAMA](https://discourse.slicer.org/u/MASAMA)\
**Post date:** [April 18, 2024, 11:36am UTC](https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format-in-ver-5-6-1/35595/1 "2024-04-18T11:36:38Z")

</div>

Dear everyone,

What I would like to do is export the DICOM CT data using MONAI with segmented regions to her DICOM-RT file. I tried the answer with # [Export Segmentation in DICOM-RT format](https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format/16805) before. However, I received the same error message “Must export the primary anatomical (CT/MR) image” as shown in the figure. .

Operating system: Windows 10  
Slicer version: 5.6.1  
Expected behavior: Export segmentation in DICOM-RT format  
Actual operation:

My workflow is as follows.

・ Enter the CT data set.  
・Perform segmentation using extended MONAI.  
・Right-click study and select Export to dicom.  
・Select RT in select export type and execute export.

However, the error shown in the figure occurs.

 ![3dslicer](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/846685dc49648511853153f35b2eb4f19f82dc84.png)

As answered in # [Export Segmentation in DICOM-RT format](https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format/16805) , segmentation is not placed under the CT, but at the same level as the CT under investigation.  
I also have SlicerRT and Quantitative reporting installed.

Could you give me some support?

Thank you so much!

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 22, 2024, 1:50pm UTC](https://discourse.slicer.org/t/export-segmentation-in-dicom-rt-format-in-ver-5-6-1/35595/2 "2024-04-22T13:50:18Z")

</div>

There is no CT in the whole scene, there is only a dose volume (the cube is colored vs all gray). Have you accidentally converted the CT to dose? We don’t have a UI option to convert a dose back to CT, so please load the volume again as CT and try exporting again.
