VS:SetWSAutoRecalcState

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Sets the AutoRecalc flag for the specified worksheet.
PROCEDURE SetWSAutoRecalcState(
worksheet  :HANDLE;
state  :BOOLEAN);
def vs.SetWSAutoRecalcState(worksheet, state):
    return None

Parameters

worksheet HANDLE Handle to worksheet.
state BOOLEAN Worksheet AutoRecalc flag.

Example

VectorScript

{Save the current AutoRecalc state}
state := GetWSAutoRecalcState(h);

{Turn off worksheet Auto Recalculation}
SetWSAutoRecalcState(h,FALSE);

{Execute worksheet edit operations ....}

{Restore AutoRecalc state}
SetWSAutoRecalcState(h, state);

{Recalculate the worksheet}
RecalculateWS(h);

Python


Version

Availability: from Vectorworks14.0

See Also

VS Functions:

VS:GetWSAutoRecalcState | VS:RecalculateWS

VS Functions:

[[VS:GetWSAutoRecalcState]]

| [[VS:RecalculateWS]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox