Hi everyone!
We have a custom object in which we are overriding subDeepClone() and subWblockClone().
Everything works quite well so far, except one thing: when one of the custom objects is selected and subsequently the OSNAP context menu is opened via Ctrl+Right click, AutoCAD for some weird reason needlessly calls WblockClone(). In the background we have an MS Access database and our custom objects are the graphical representatives of those database-resident objects. Naturally, when subWblockClone() is called, we also create a new copy of the object in our database.
Of course when the user opens the context menu this is unwanted.
So my 2 questions are:
1) Does anyone know WHY AutoCAD calls WblockClone() when the OSNAP context menu is opened?
2) Can anyone think of a way to tell whether the call is coming from the OSNAP menu or whether it comes from a "legit" command that calls WblockClone() for a reason (e.g. CUTCLIP)?
Any help would be appreciated. Thanks in advance!
Matthias