ReadonlyconfigConfiguration for the converter
OptionalprogressOptional progress callback for tracking conversion progress
ProtectedgetResolves the parser worker timeout in milliseconds.
Explicit timeout always takes precedence. Otherwise the timeout scales linearly with file size at one extra second per MiB, clamped to the range of 30 seconds to 2 minutes.
Optionaltimeout: numberProtectedonProtectedonProtectedparseOptionaltimeout: numberProtectedprocessProtectedprocessProtectedprocessOptional stage: CLASSES metadata only augments the database and older converters predate it. A throwing default (like the mandatory stages above) would break any converter compiled before this stage existed — the HEADER task calls it unconditionally, so a data-model upgrade without a matching converter upgrade aborted every file open with "Error occurred in conversion stage HEADER" (mlightcad/cad-viewer#437).
ProtectedprocessProtectedprocessBreaks up the work into smaller chunks that are executed asynchronously. This is often referred to as "batch processing" or "cooperative multitasking," where the time-consuming task is broken into smaller pieces and executed in small intervals to allow the UI to remain responsive.
Optionalprogress: AcDbConversionProgressCallbackProtectedprocessProtectedprocessProtectedprocessProtectedprocessProtectedprocessProtectedprocessReads and converts data into an AcDbDatabase.
This method orchestrates the entire conversion process, including parsing, processing various components (linetypes, styles, etc.), and building the final database.
The input data to convert
The database to populate with converted data
Optionaloptions: AcDbDatabaseConverterReadOptionsOptional read options (chunk size, progress, etc.)
Promise that resolves when conversion is complete
Database converter for DWG files based on libredwg-web.