Autodesk.AutoCAD.Runtime Namespace > CommandFlags Enumeration
Autodesk.AutoCAD.Runtime.CommandFlags Enumeration   
Description

 

Members of this enumeration represent values that can be passed as the commandFlags argument of the AcEdCommandStack.addCommand() ObjectARX function. 

 

AcEdCommandStack.addCommand() creates an AcEdCommand object; fills it in with a copy of the global command name, a copy of local command name, associated command flags, and function to be executed; and adds it to the command group. If the group command name does not exist, then a new command group is created and added to the CommandStack before the new AcEdCommand object is added. Otherwise the existing command group is searched to find an AcEdCommand object with the same global name as the available global command name or the same local name as the available local command name. 

Visual Basic
Public Enum CommandFlags
  ActionMacro = &H8000000
  Defun = &H800
  DocExclusiveLock = &H100000
  DocReadLock = &H80000
  InProgress = &H400
  Interruptible = &H400000
  Modal = 0
  NoActionRecording = &H4000000
  NoBlockEditor = &H2000000
  NoHistory = &H800000
  NoInferConstraint = &H40000000
  NoInternalLock = &H20000
  NoMultiple = &H10
  NoNewStack = &H10000
  NoOem = &H100
  NoPaperSpace = &H40
  NoPerspective = 8
  NoTileMode = &H20
  NoUndoMarker = &H1000000
  Redraw = 4
  Session = &H200000
  TempShowDynDimension = -2147483648
  Transparent = 1
  Undefined = &H200
  UsePickSet = 2
End Enum
Members
Members 
Description 
ActionMacro = 0x8000000 
This bit commands that are defined as a result of recording a series of actions with the ActionRecorder. 
Defun = 0x800 
This flag can only be set by the Visual LISP engine. Command can be invoked as a LISP function and can therefore use acedGetArgs() to receive arguments from LISP and can use the acedRetXxx() functions to return values to LISP. 
DocExclusiveLock = 0x100000 
Document will be exclusively locked when command is invoked. If this bit is not set, then the document will be share locked when the command is invoked. 
DocReadLock = 0x80000 
Document will be read locked when command is invoked. If this bit is not set, then the document will be write locked when the command is invoked. 
Interruptible = 0x400000 
The command may be interrupted when prompting for user input while it is calling any of the acedGetxxx methods. 
Modal = 0 
Command cannot be invoked while another command is active. 
NoActionRecording = 0x4000000 
This flag causes the ActionRecorder to ignore the associated command 
NoBlockEditor = 0x2000000 
The command is blocked during a bedit session. 
NoHistory = 0x800000 
The command will not be added to AutoCAD’s repeat-last-command functionality. 
NoPaperSpace = 0x40 
Command cannot be invoked when in paperspace. 
NoTileMode = 0x20 
Command cannot be invoked when TILEMODE == 1. 
NoUndoMarker = 0x1000000 
The command and its undo markers will not be added to the undo file. This is intended for commands that don't modify the database, and therefore should not show up in the undo file. 
Redraw = 4 
When the pickfirst set or grip set are retrieved, they are not cleared within AutoCAD.
Command can retrieve the pickfirst set and the grip set by using the ads_ssgetfirst function.
Command can retrieve the pickfirst set via ads_ssget("I.").
Command can set both the pickfirst and grip sets using the ads_sssetfirst function. Objects in these sets are redrawn with the proper grip handles and highlighting upon completion of the command. 
Session = 0x200000 
The command will be run in the application execution context rather than the current document context, with the different capabilities and limitations that entails. It should be used sparingly. 
Transparent = 1 
Command can be invoked while another command is active.
ads_sssetfirst() cannot be used when this flag is set 
Undefined = 0x200 
Command can only be invoked via the cmdGroupName.cmdGlobalName syntax. 
UsePickSet = 2 
When the pickfirst set is retrieved, it is cleared within AutoCAD.
Command is able to retrieve the pickfirst set via the functions ads_ssgetfirst() or ads_ssget("I.").
Command can set the pickfirst set via ads_sssetfirst(), but it only stays set until the command ends.
Command cannot retrieve nor set grips. 
   Comments?