This function must be used inside a worksheet script called by 'RunScriptEdit' worksheet formula. It will return the object being edited when 'WSScript_GetEdit' returns that the script is in edit mode.
FUNCTION WSScript_GetEditObj(
objIndex : INTEGER;
VAR outObj : HANDLE): BOOLEAN;def vs.WSScript_GetEditObj(objIndex):
return (BOOLEAN, outObj)| Name | Type | Description |
|---|---|---|
| objIndex | INTEGER | Index to the object to be returned as the script can be called for a set of objects. Will return FALSE if no such object. |
| outObj | HANDLE | Output the object that is being edited. |
VS Functions: WSScript_GetEdit
Availability: from Vectorworks 2021