Similar to SetTool, but takes name rather than ID. Supports plug-in tools (but not yet internal tools).
FUNCTION SetToolByName(toolName : STRING): BOOLEAN;def vs.SetToolByName(toolName):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| toolName | STRING |
resultOK := SetToolByName('Example');import vs
# Similar to SetTool, but takes name rather than ID.
toolName = 'Example'
ok = vs.SetToolByName(toolName)
if ok:
vs.Message('SetToolByName succeeded')
else:
vs.Message('SetToolByName failed')Availability: from Vectorworks 2014