Hide Autocad Commands

Hide Autocad Commands

Anonymous
Not applicable
727 Views
2 Replies
Message 1 of 3

Hide Autocad Commands

Anonymous
Not applicable

We are building custom application where user can drag and drop from palette toolset. But we don't want user to be able to enter few standard autocad commands. Is there a way to block them? Thanks in advance!

0 Likes
Accepted solutions (1)
728 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

There are a few ways of going about it. You could add those commands to your code which would "hijack" them. Or write to their pgp file, which is sort of a bad idea. I'm not sure of your end goal though.

0 Likes
Message 3 of 3

hgasty1001
Advisor
Advisor
Accepted solution

Hi,

 

You can veto a command intercepting DocumentLockModeChanged event that almost any command fires, some code and comments in the next 2 links:

 

Gaston Nunez