Monitor mouse event

Hi Dale,

thanks, that`s what i do now, first check if the replace event has been called before the delete event, and if not, the object has been deleted.

replace = False 

def MyDeleteObjectEvent(sender, e):
    global replace
    if e.ObjectId == id:
        if replace == True: replace = False
        else: 
            print "Object Deleted"
            replace = False
            #  remove both events here

def MyReplaceObjectEvent(sender, e):
    global replace
    if e.ObjectId == id: replace = True

…its probably not the cleanest way :wink:

c.

2 Likes