Adding multiple CommandFlags to a command?

Adding multiple CommandFlags to a command?

Anonymous
Not applicable
1,260 Views
3 Replies
Message 1 of 4

Adding multiple CommandFlags to a command?

Anonymous
Not applicable

Hi - is it possible to give a command multiple CommandFlags? Thanks.

0 Likes
Accepted solutions (1)
1,261 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant
Accepted solution

Hi,

Yes with the Bitwise OR operator (|).

CommandFlags.Modal | CommandFlags.UsePickSet


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

ehsan_bahrani
Enthusiast
Enthusiast
how can call command when another command is active, just like "mtp" or "from" and other command modifiers?
0 Likes
Message 4 of 4

R.Gerritsen4967
Advocate
Advocate

Look here:

http://docs.autodesk.com/ACD/2011/ENU/filesMDG/WS1a9193826455f5ff-e569a0121d1945c08-17d4.htm 

 

I think you need:

 

 

Commandflags.Transparent

 

 

Lots more info: (and also more commandflags)

https://www.theswamp.org/index.php?topic=8204.msg498305#msg498305