VS:ws2CreateToolSet

From Vectorworks Developer
Revision as of 14:49, 3 September 2024 by KLinzey (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Workspace advanced APIs. Create a new tool set if it doesn't exist. Retina icon will be loaded automatically if it has the same name suffixed with @2x.png and resolution 26 by 20 pixels.

FUNCTION ws2CreateToolSet(
toolPath :DYNARRAY[] of CHAR;
univName :DYNARRAY[] of CHAR;
displayName :DYNARRAY[] of CHAR;
iconFullFilePath :DYNARRAY[] of CHAR) : BOOLEAN;
def vs.ws2CreateToolSet(toolPath, univName, displayName, iconFullFilePath):
    return BOOLEAN

Parameters

toolPath DYNARRAY[] of CHAR
univName DYNARRAY[] of CHAR
displayName DYNARRAY[] of CHAR
iconFullFilePath DYNARRAY[] of CHAR

Remarks

Starting with Vectorworks 2024 .svg icons are required are required in order to support Dark Mode.

Icon.svg

Icon@2X.svg

Icon_dark.svg

Icon_dark@2X.svg

Version

Availability: from Vectorworks 2021