The Document object, which is actually an AutoCAD drawing, is part of the DocumentCollection object and provides access to the Database object which is associated with the Document object. The Database object contains all of the graphical and most of the nongraphical AutoCAD objects. For more information on the Database object, see The Database Object.
Along with the Database object, the Document object provides access to the the drawing status bar, the window the document is opened in, the Editor and Transaction Manager objects. The Editor object provides access to functions used to obtain input from the user in the form of a point or an entered string or numeric value. For more information on requesting input from the user, see Prompt for User Input.
The Transaction Manager object is used to access multiple database objects under a single operation known as a transaction. Transactions can be nested, and when you are done with a transaction you can commit or abort the changes made. For more information on transactions and the Transaction Manager object, see Use Transactions with the Transaction Manager.