I am constructing a plugin where we have a UserData defined and these objects should be specific, imagine a brep. If changed, I need to check if the brep is still valid, for example if the user uses the Explode command on it, it does influence some other things in my code, hence i wanne then do some adjustments or fixes or prevent the explode for example, or just remove it from my internal structure.
What is the best way to approach this? I prefereably want to know via an event, the specific object that changed, and maybe how it changed in order to compare it and check the validity based on my standards.