VS:EnableDrawingWorksheetPalette

From Vectorworks Developer
Jump to: navigation, search

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

Description

Enables/disables drawing for the specified worksheet or all displayed worksheet palettes if worksheet is nil.


To improve speed and avoid flickering, it is highly recommended to disable drawing in worksheet palettes before performing several write operations in an opened worksheet.
Enable drawing back when the operations are completed.

PROCEDURE EnableDrawingWorksheetPalette(
enable  :BOOLEAN;
worksheet  :HANDLE);
def vs.EnableDrawingWorksheetPalette(enable, worksheet):
    return None

Parameters

enable BOOLEAN Specifies if worksheet palettes' drawing should be enabled or disabled.
worksheet HANDLE Handle to specific worksheet for which to enable/disable drawing;

Example

VectorScript

{Disable drawing in all displayed worksheet palettes.}
EnableDrawingWorksheetPalette(FALSE, NIL);

{Write it worksheets ....}
...
...
...

{Enable back drawing in all displayed worksheet palettes.}
EnableDrawingWorksheetPalette(TRUE, NIL);

Python

{Disable drawing in all displayed worksheet palettes.}
vs.EnableDrawingWorksheetPalette(False, None)

{Write it worksheets ....}
...
...
...

{Enable back drawing in all displayed worksheet palettes.}
vs.EnableDrawingWorksheetPalette(True, None)

Version

Availability: from Vectorworks14.0
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox