Hi,
What is the method to clear or reset a layout diagram ?
I have tried the following without success ...
LayoutDiagram.DeselectAll()
LayoutDiagram.Clear()
LayoutDiagram.UndoRedoService.Clear()
LayoutDiagram.Refresh()
Issue I am having is if there is a selected shape on the diagram, when I clear/re-add shapes, I am getting a strange side-effect where the shape's manipulation adorner becomes visible but the shape is no longer selectable. It looks like there is some "cache" behind the scenes that isn't clearing ? I would have expected LayoutDiagram.Clear is all I needed to call to reset to a "clean slate" ? Is this so ?
Kind regards,
Milan