Parent Object: Documents Defined in namespace "adsk::core" and the header file is <Core/Application/Documents.h>
Description
Creates and opens a new document of the specified type.
Creating a document is not supported within any of the Command related events. When a command is running, a transaction is open, and creating and closing documents cannot be transacted and, as a result, cannot be contained within a command transaction.
A value from the DocumentTypes enum that specifies the type of document to create.
visible
boolean
Optional argument specifying is the document should be visible or not. Currently, documents can only be created visibly so this argument must always be true.
This is an optional argument whose default value is True.
Various options that are supported that are specific to the document type. See the documentation for the DocumentTypes enum for information about the options supported for the various types.
This is an optional argument whose default value is null.