Is this the same question as How to expand/collapse all panels in the diagram programatically? ? If so, I’ll answer there.