Options for opening a CAD database.

This interface extends the base options from the data model but replaces the readOnly property with a mode property that provides more granular access control.

const options: AcApOpenDatabaseOptions = {
mode: AcEdOpenMode.Write,
fontLoader: myFontLoader
};
interface AcApOpenDatabaseOptions {
    fontLoader?: AcDbFontLoader;
    minimumChunkSize?: number;
    mode?: AcEdOpenMode;
}

Hierarchy

  • Omit<AcDbOpenDatabaseOptions, "readOnly">
    • AcApOpenDatabaseOptions

Properties

fontLoader?: AcDbFontLoader

Loader used to load fonts used in the drawing database.

This loader will be used to load any fonts referenced by text entities in the drawing database.

minimumChunkSize?: number

The minimum number of items in one chunk.

If this value is greater than the total number of entities in the drawing database, the total number is used. This controls how the database processing is broken into chunks for better performance.

The access mode for opening the database. Higher value modes are compatible with lower value modes.

  • Read (0): Read-only access
  • Review (4): Review access, compatible with Read
  • Write (8): Full read/write access, compatible with Review and Read