Function NumLayers returns the current number of layers within the active document.
FUNCTION NumLayers : INTEGER;def vs.NumLayers():
return INTEGERresultN := NumLayers;import vs
# Function NumLayers returns the current number of layers within the active
# document.
count = vs.NumLayers()
vs.Message('NumLayers returned: ' + str(count))Availability: from All Versions