• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Turning-Off Undo and Recovery Folder

Engaged ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

Hi,

My C++ PLN creates large complex documents (100-400 pages on average) and I get the impression that this is being slowed down by the maintenance of te undo stack and the recovery folder.

Is there a way in the SDK to turn these off completely ?

Very best regards,

Olivier

TOPICS
How to , Performance , SDK

Views

313

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 08, 2021 Jun 08, 2021

For command history you can look at the ICmdHistory interface it has the Enable and Disable methods that should be of interest to you.

-Manan

Votes

Translate

Translate
Community Expert ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

If you been working on an InDesign document for some time it's best occasionally to save it as an IDML document to clear out the crud that builds up over time and that can cause corruption and slow down the system.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

For command history you can look at the ICmdHistory interface it has the Enable and Disable methods that should be of interest to you.

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

Manan, I think command sequences already disable the history. Olivier is talking a lower level.

Olivier, have you already tried the undo modes from scripting - wrap your plug-in code in one script method 😉

If that fails, there are plenty methods in IDataBase. Just search for "Internal use only" to make you drooling.

Some involve the protection level and are even without that comment. I haven't used them on regular publication files, but on throw-away files similar to scrap dbs. It may also be worth to have a look at the approaches taken by InDesign Server.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 21, 2021 Jun 21, 2021

Copy link to clipboard

Copied

LATEST

Thank you for the tip, Dirk.

As mentioned to Manan, it turns out that the issue was related to pages reflowing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 21, 2021 Jun 21, 2021

Copy link to clipboard

Copied

Thank you for the tip, Manan.

It turns out that the issue was related to pages reflowing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines