Python Script Engine  8.1
GL Studio Editor Python Script API
NewDocument.py

Example on how to create a new Document.

1 # import the Editor module
2 import Editor
3 
4 # Create a new Document
5 newDoc = Editor.NewDocument()