# Repair diagram layout Not a bug fix, a bulk settings change. Switches migrated draw.io diagrams between the classic draw.io layout and Capable's Auto layout. Migrations run before the layout option existed all landed on Auto. Find it under Repair, then the "Repair diagram layout" card. Works from a log or from page IDs.. --- ## What it changes Writes only the layout setting, and only where it differs from the target. Covers both the Diagram and the Diagram Reference macro, but deliberately not the Diagram Source macro. Writes a new page version labelled as a layout change. --- ## What to know before running it Only writes to macros proven to be draw.io, either by the migration's own stamp or by reading the diagram itself. Other Capable diagram macros are counted separately and left alone, because writing a layout onto them would silently opt them out of the space default they inherit. It has no check step and no preview, going straight from adding pages to scanning to writing, so the fix-one-page-first gate is its only safety net. Its log matching is very loose, so expect candidate rows that scan to nothing. It is also the only panel with no results export. ℹ️ **Every write is a new page version** with its own version message, so the repair itself is visible in page history and can be undone from there. --- ## A few things that catch people out * Bulk operation stays locked until you have fixed and checked one page by hand. * It only looks at the pages you hand it. It never sweeps the site. * Cancel stops the queue between pages; anything already in flight still writes. --- ## Related [Repair diagram versionsMigrated draw.io diagrams that display their oldest content instead of their newest.](https://help.gocapable.com/migration/repair-diagram-versions.html) [Repair diagram tabsMulti-tab diagram files embedded several times on one page, where every resulting referenc](https://help.gocapable.com/migration/repair-diagram-tabs.html) [Before you repair anythingThe rules all four share.](https://help.gocapable.com/migration/before-you-repair-anything.html) --- _Fix forward. Nothing is deleted._