Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.05 KB

File metadata and controls

52 lines (42 loc) · 1.05 KB

SetObjectVariableHandle

Description

Sets the value of a VectorWorks object property.

PROCEDURE SetObjectVariableHandle(
				h     : HANDLE;
				index : INTEGER;
				value : HANDLE);
def vs.SetObjectVariableHandle(h, index, value):
    return None

Parameters

Name Type Description
h HANDLE
index INTEGER
value HANDLE

Examples

BEGIN
SetObjectVariableHandle(vpHandle, 1046, pluginH);
ReDrawAll;
END;

IF drawingInVP THEN BEGIN
	{This call will move the newly created dimension to where it should be in the viewport annotation layer.}
	SetObjectVariableHandle(LNewObj, 1234, containerHandle);
END;
import vs

# Sets the value of a VectorWorks object property.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
index = 1
value = vs.NextSObj(vs.FSActLayer())  # handle to the next selected object

vs.SetObjectVariableHandle(h, index, value)

Version

Availability: from VectorWorks12.0

Category