why ctrl+c ctrl+v from a blockreference call the database_ObjectErase event

why ctrl+c ctrl+v from a blockreference call the database_ObjectErase event

reithinger
Advocate Advocate
172 Views
1 Reply
Message 1 of 2

why ctrl+c ctrl+v from a blockreference call the database_ObjectErase event

reithinger
Advocate
Advocate

Hi,

i have a problem with ctrl+c, ctrl+v.

I copy paste a blockreference in my dwg, by paste, i'm debugging and see that my Database_ObjectErased Event is called. 

MdiActiveDocument.Database.ObjectErased += Database_ObjectErased;

What can i do to know if the user make a copy paste or not ?

Give it a solution that the paste not call the event ? Im my event, i delete DWG Settings because the blockreference deleted is, but in this case, it is not deleted it is copy and paste.

I don't unterstannd.

 

Thank for your help

Fabrice

0 Likes
173 Views
1 Reply
Reply (1)
Message 2 of 2

ActivistInvestor
Mentor
Mentor

COPYCLIP == WBLOCK

 

PASTECLIP == INSERT

 

Copying and pasting is essentially a way to do a WBLOCK and INSERT.

 

Unfortunately I am not clearly understanding what it is you want/need to do.

0 Likes