XSIApplication.ActiveToolName

Introduced

v4.0

Description

Returns the name of the currently active tool in the active view as a String. An empty string is returned if the tool is not recognized.

C# Syntax

// get accessor

String rtn = XSIApplication.ActiveToolName;

Examples

JScript Example

// Activate the rotation tool

RotationTool();

// Get the name of the current tool

var toolname = ActiveToolName;

LogMessage( "current tool: " + toolname );

//INFO : "current tool: RotationTool"