Stopping Deletion event

Hi,

We are struggling on how to stop a deletion event.
We have added a Listener to SelectionDeleting but we don’t know how to stop it.

Please, any suggestion to resolve this matter?

Thanks in advance.

You can change the selection. You could call Diagram.clearSelection, Diagram.select, or Diagram.selectCollection, or you could set Part.isSelected.

Although it may be better to set Part.deletable to false on parts you want to prevent from being deleted.

Okey thanks!
We will try that solution.