Sets the ON-OFF status of a VectorWorks object property.
For specific object selector index values, see the Script Appendix.
PROCEDURE SetObjectVariableBoolean(
h : HANDLE;
index : INTEGER;
status : BOOLEAN);def vs.SetObjectVariableBoolean(h, index, status):
return None| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
| index | INTEGER | Object property index. |
| status | BOOLEAN | New status for property. |
SetObjectVariableBoolean(obj, 17, FALSE);SetObjectVariableBoolean(parmHand, 800, TRUE);
PushAttrs;
ELSE BEGIN
shaftH := WholeRRect(-gShaftWidth/2, gShaftDepth/2, gShaftWidth/2, -gShaftDepth/2, gShaftRadius);
parmClassName := GetClass(gPluginH);
Locus(0, 0);
SetObjectVariableBoolean(LNewObj, kOvMasterSnapPoint, TRUE);
SetObjectVariableBoolean(LNewObj, kOvShowMasterSnapOutsideSnapbox, FALSE);
SetClass(LNewObj, parmClassName);
Locus(gShaftWidth/2, gShaftWidth/2);
SetObjectVariableBoolean(LNewObj, kOvMasterSnapPoint, TRUE);
NewField(kHidRecName, kDatabaseUUID, '', 4, 0);
NewField(kHidRecName, kNoteDescrip, '', 4, 0);
NewField(kHidRecName, kNoteUUID, '', 4, 0);
NewField(kHidRecName, kText, '', 4, 0);
SetObjectVariableBoolean(GetObject(kHidRecName), 900, kRNDebugMode);
END;vs.SetObjectVariableBoolean( gObjHandle, 800, True )See also in tutorials: 03. Build a Curved Path with Mixed Vertex Types, Plug-in with widgets, basic example (Python)
Availability: from VectorWorks 9.0