Skip to main content
Inspiring
Mar 20, 2025 7:24 AM UTC
Question

Illustrator C++-API: Some changes are not taken into the UNDO-Function

I program an C++-plugin which does the following:

  • Modify the colors of Elements
  • Change the ICC-Profile of the document
  • write settings to the XMP of the document

When calling Undo for the is plugin, it changes back the colors, but the Profile and the XMP-changes were not undone. 

How to tell Illustrator that all of these steps should be reverted when calling Undo?

2 replies

Community Expert
Apr 1, 2025 2:46 AM UTC

Don't know if this is a bug. What happens if you do these operations manually, do they get added to the undo stack?

-Manan

Translate
-Manan
Inspiring
Apr 1, 2025 8:14 AM UTC

If I do it manually (means calling Edit -> Assign Profile), it is put to the Undo

Translate