Book a Demo

Author Topic: EA_OnPreDeleteElement - how tell if true deletion?  (Read 2873 times)

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
EA_OnPreDeleteElement - how tell if true deletion?
« on: November 16, 2010, 04:37:06 pm »
Hi,

I'm wanting to prevent users deleting an element from the model in certain circumstances, but don't care if they remove it from a diagram.

Unfortunately, EA_OnPreDeleteElement is firing even when I am removing an element from a diagram.  

Any ideas how to differentiate between removing from a diagram and removing from the entire model?

~ Colin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA_OnPreDeleteElement - how tell if true delet
« Reply #1 on: November 16, 2010, 05:39:49 pm »
Seems like a bug to me. I just quickly tested it and had the same result. The event should not fire when removing an element from the diagram.

You better report it using the Report a Bug link on the bottom of the screen.

Geert
« Last Edit: November 16, 2010, 05:41:03 pm by Geert.Bellekens »