Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

commandEcho [-filter string[]] [-lineNumbers boolean] [-state boolean]

commandEcho is undoable, queryable, and NOT editable.

This command controls what is echoed to the command window.

Return value

None

In query mode, return type is based on queried flag.

Flags

filter, lineNumbers, state
Long name (short name) Argument types Properties
-state(-st) boolean createquery
If true then all commands are echoed to the command window. If false then only relevant commands are echoed.
-filter(-f) string[] createquery
This flag allows to filter out unwanted commands when echo all commands is enabled. You can provide a partial command name, so all commands that start with a substring specified in filter entry will be filtered out. If filter is empty, all commands are echoed to the command window.
-lineNumbers(-ln) boolean createquery
If true then file name and line number information is provided in error and warning messages. If false then no file name and line number information is provided in error and warning messages.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Echo everything
commandEcho -state on;
// Go back to normal
commandEcho -state off;
// Display line number information in messages.  This is the default.
commandEcho -lineNumbers on;
// Do not display line number information in messages.
commandEcho -lineNumbers off;
// Do not display changeToolIcon, escapeCurrentTool or autoUpdateAttrEd commands when echoing everything
commandEcho -filter {"changeToolIcon", "escapeCurrentTool", "autoUpdateAttrEd"};
// Do not display setLastFocusedCommandReporter or setLastFocusedCommandExecuter when echoing everything
commandEcho -filter "setLastFocusedCommand";