Elements lose layer information when exporting CDX/CDXML files from Ketcher into ChemDraw
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
**Summary**
Elements lose layer information when exporting CDX/CDXML files from Ketcher into ChemDraw
**Steps to Reproduce**
1. Create a structure in Ketcher with image and other elements on top of the image layer [ketcher (93).zip](https://github.com/user-attachments/files/17017170/ketcher.93.zip)
2. Save the structure as a CDX or CDXML file.
3. Open the saved CDX/CDXML file in ChemDraw.
**Note:** This issue does not occur if the CDX/CDXML file is saved with images and elements in ChemDraw and then opened in Ketcher. All layers are preserved in that case.
**CDX/CDXML Files saved in Ketcher:** [Image with elements.zip](https://github.com/user-attachments/files/17017103/Image.with.elements.zip)
**Expected behavior**
The file should retain all layers when opened in ChemDraw

**Actual behavior**
Elements lose layer information when exporting CDX/CDXML files from Ketcher into ChemDraw

**Desktop:**
- OS: Windows 11
- Browser Chrome
- Version 128.0.6613.120 (Official Build) (64-bit)
**Ketcher version**
[Version 2.25.0-rc.1]
**Indigo version**
[Version 1.25.0-dev.1]
Bug found during testing: https://github.com/epam/Indigo/issues/2259
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the CDX/CDXML export entry points and reproduce the case using ketcher (93).zip and Image with elements.zip, then compare the exported files with the expected layer arrangement in ChemDraw. Done means exporting from Ketcher preserves the image and element layers when reopened in ChemDraw for both CDX and CDXML.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100