Examples:
The following VBA example creates a new document and draws an ellipse in it. Then another document is created, and a rectangle is added to it. The first document is then activated and a new page is added to it.
Sub DocumentActive()
CreateDocument
ActiveLayer.CreateEllipse2 3, 2, 1
CreateDocument
ActiveLayer.CreateRectangle 2, 3, 4, 5
Documents(1).Activate
ActiveDocument.AddPages 1
End Sub