How to retrieve list of selected shapes?


#1

Hi guys,
Consider i select some shapes of diagram by dragging them .
How can i retrieve list of these selected shapes when i run my plugin (only selected shapes not all shapes of diagram )?


#2

They can be get from DiagramManager

DiagramManager lDiagramManager = ApplicationManager.instance().getDiagramManager();
IDiagramElement[] lHERE = lDiagramManager.getSelectedDiagramElements();

#3

Thank you so much :ok_hand: