Options for AcDbDatabaseConverter.read.

Keeps the converter read API extensible without growing positional arguments.

interface AcDbDatabaseConverterReadOptions {
    encoding?: string;
    minimumChunkSize?: number;
    progress?: AcDbConversionProgressCallback;
    sysVars?: Record<string, string | number | boolean>;
    timeout?: number;
}

Properties

encoding?: string

Override the text encoding used to decode strings in the source file.

When omitted, converters auto-detect the encoding (DXF reads $DWGCODEPAGE; DWG reads the header code page). When provided, it wins over auto-detection — for example 'cp949' (normalized to the supported 'euc-kr' TextDecoder label) for Korean drawings. Applies to converters that read text in the main thread, such as the native DXF converter; worker-based converters may ignore it.

minimumChunkSize?: number

Minimum number of items in one processing chunk.

Defaults to converter-specific behavior when omitted.

Optional progress callback invoked as conversion stages advance.

sysVars?: Record<string, string | number | boolean>

System variables to override in the database after HEADER is processed.

timeout?: number

Timeout for parser web worker operations in milliseconds.