ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WBLOCK and OSNAP context menu

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
423 Views, 0 Replies

WBLOCK and OSNAP context menu

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

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost