Nav Nav - 1 year ago 94
C# Question

using addin to layout the diagram in EA opens the diagram in the view

Using LayoutDiagramEx method to layout the diagram in EA using addin open the diagram in the view.But how to close the diagrams that are opened during the layouting of diagram.Because we want not to open the diagram in view .But it should be autoarranged without opening or how to close the diagram that is opened in the EA using Addin in C#

Answer Source

I think you cannot avoid EA to open the diagram when doing the auto-layout.

Closing a diagram is as obvious as Repository.CloseDiagram(diagramID).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download