Get string parameter of a Lighting Device or attached Accessory by Worksheet Name. Use cell index 0 to operate on the first cell. Cell index -1 is not supported for Get. Use accessory index -2 to ignore accessory values. Use accessory index 0 to operate on the first accessory of the specified cell. Accessory index -1 is not supported for Get.
FUNCTION LDevice_GetParamStr(
handle : HANDLE;
cellIndex : LONGINT;
accessoryIndex : LONGINT;
universalName : STRING): STRING;def vs.LDevice_GetParamStr(handle, cellIndex, accessoryIndex, universalName):
return STRING| Name | Type | Description |
|---|---|---|
| handle | HANDLE | |
| cellIndex | LONGINT | |
| accessoryIndex | LONGINT | |
| universalName | STRING |
BEGIN
lightingDeviceLabel := LDevice_GetParamStr(h, cellIndx, accIndx, 'Use Legend');
IF (lightingDeviceLabel <> 'None') AND (NOT LabelExists(lightingDeviceLabel)) THEN
BEGIN
needsLabelReset := TRUE;
counterInner := accCountCell;
BEGIN
IF LDevice_GetParamStr(H,i,k,kIObType) = instType then outCount := outCount+1;
ENDimport vs
# Get string parameter of a Lighting Device or attached Accessory by
# Worksheet Name.
handle = vs.FSActLayer() # handle to the first selected object on the active layer
cellIndex = 1
accessoryIndex = 1
universalName = 'Example'
text = vs.LDevice_GetParamStr(handle, cellIndex, accessoryIndex, universalName)
vs.Message('LDevice_GetParamStr returned: ' + str(text))Availability: from Vectorworks 2021