Similar to CallTool, but takes name rather than ID. Supports plug-in tools (but not yet internal tools).
FUNCTION CallToolByName(toolName : STRING): BOOLEAN;def vs.CallToolByName(toolName):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| toolName | STRING |
Message( CallToolByName( 'Spiral' ) );
{ activates Spiral tool, returns true if successful
Note: Spiral is not an internal tool
if you try it for example with 'Wall' this will return an error, since it's an internal tool }vs.Message( vs.CallToolByIndex( 'Spiral' ) )
# activates Spiral tool, returns true if successful
# Note: Spiral is not an internal tool
# if you try it for example with 'Wall' this will return an error, since it's an internal toolresultOK := CallToolByName('Example');import vs
# Similar to CallTool, but takes name rather than ID.
toolName = 'Example'
ok = vs.CallToolByName(toolName)
if ok:
vs.Message('CallToolByName succeeded')
else:
vs.Message('CallToolByName failed')VS Functions:
Availability: from Vectorworks 2014