Filter (CommandCollection)

Description

Creates a new collection composed of all Command objects matching any of the provided keywords.

Scripting Syntax

CommandCollection.Filter( [Keywords] )

C# Syntax

CommandCollection CommandCollection.Filter( Object Keywords );

Parameters

Parameter

Type

Description

Keywords

String or Array of Strings

Keywords to match

Return Value

CommandCollection

Examples

VBScript Example

' Display information about a command
SUB ShowCommand( ByRef oCommand )
logmessage "--------------------------------"
logmessage "Name: " & oCommand.Name
logmessage "FileName: " & oCommand.FileName
logmessage "Handler: " & oCommand.Handler
logmessage "Language: " & oCommand.language
logmessage "Type: " & oCommand.type
END SUB

set oAllCommands = Application.Commands

' Get all custom commands
set oCustomCommands = oAllCommands.Filter("Custom")

' Display all custom commands
FOR EACH oCommand IN oCustomCommands
ShowCommand oCommand
NEXT

See Also

Command

Application



Autodesk Softimage v7.5