Execute (Command)

Description

Executes the underlying command. In the case of a new custom command, the command needs to be installed inside Softimage before this works, using XSIApplication.AddCommand. Use the Command.Arguments property to specify arguments for the command.

Note: If the command expects arguments and none is specified then it is invoked with the default arguments.

C# Syntax

Object Command.Execute();

Return Value

A Variant containing the value returned from the command. If the command has no return value explicitly defined, Execute returns all output arguments in an Array object. However, if the command defines a return value, you cannot extract any output arguments from it. This is because the command is not returning an output argument array, but a specific value. You can check the Return Value section in the reference documentation to see whether it uses an explicit return value and what that value is.

Examples

VBScript Example

'
'  VBScript example
'
set cmd = Application.Commands("Duplicate/Instantiate Options")
cmd.Execute


Autodesk Softimage v7.5