Creates a new document instance with an empty database.
The document is initialized with ACAP_UNTITLED_DOC_TITLE and write mode enabled.
Gets the database object containing all drawing data.
The underlying CAD database instance
Gets the display title of the document.
The title of the document
Sets the display title of the document.
Notes:
The browser tab title isn't updated on purpose because users may use it as
one component and don't want to the browser tab title changed. So if you
want to change the browser tab title, you can listen events
AcApDocManager.events.documentActivated to change it in your event listener.
The new document title
Returns the entity service for this document's database.
Gets the file name of the current document.
The file name, or an empty string for untitled documents
Returns the layer service for this document's database.
Returns the layer store for UI integrations observing this document.
Gets the URI of the document if opened from a URI.
The document URI, or undefined if not opened from URI
Records one object as temporarily hidden in the current session.
Captures the current layer table state for AcApLayerPCmd.
Clears the stored LAYISO snapshot without restoring it.
Clears the stored LAYERP snapshot without restoring it.
Consumes the stored LAYISO snapshot for a one-shot LAYUNISO restore.
Tears down document-scoped services and session state.
Call before replacing this document's drawing content or when discarding the document. Lazy services are recreated on the next access.
Returns the stored LAYERP snapshot without clearing it.
Returns true when the object is temporarily hidden by HIDEOBJECTS.
Isolates layers using LAYISO semantics and stores an undo snapshot.
Names of layers to keep visible.
How non-isolated layers are hidden.
Public isolation result, or undefined when layerNames is empty.
Opens a CAD document from file content.
The name of the file (used to determine file type from extension)
The file content as string or ArrayBuffer
Options for opening the database
Promise resolving to true if successful, false if failed
Opens a CAD document from a URI.
The URI of the CAD file to open
Options for opening the database
Promise resolving to true if successful, false if failed
Clears file identity after creating a document from a template.
Template content remains in the database; only URI, file name, and title are reset so the document presents as a new unsaved drawing.
Restores the previously captured LAYERP layer table state.
true when a snapshot existed and was applied.
Stores the latest LAYISO snapshot for AcApLayerUnisoCmd.
Isolation snapshot produced by LAYISO.
Returns and clears all temporarily hidden object ids.
Restores the latest LAYISO snapshot (LAYUNISO).
Number of restored layers, or undefined when no snapshot exists.
Represents a CAD document that manages a drawing database and associated metadata.
This class handles: