Example: GetDocumentState

 

To get the status of layer 1027 on the current page in the active document:

[GetDocumentState(0, 0, 1027)]

A sample reply:

33

This means that the layer is clean (1) and loaded (32).