Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 650 Bytes

File metadata and controls

41 lines (32 loc) · 650 Bytes

SetToolByIndex

Description

Similar to SetTool. Takes the internal ID of a tool.

FUNCTION SetToolByIndex(toolIndex : INTEGER): BOOLEAN;
def vs.SetToolByIndex(toolIndex):
    return BOOLEAN

Parameters

Name Type Description
toolIndex INTEGER

Examples

resultOK := SetToolByIndex(1);
import vs

# Similar to SetTool.
toolIndex = 1

ok = vs.SetToolByIndex(toolIndex)
if ok:
    vs.Message('SetToolByIndex succeeded')
else:
    vs.Message('SetToolByIndex failed')

Version

Availability: from Vectorworks 2014

Category