How to do not show dialogs usnig API

Hello.
I'm developing a program using C# API provided by DraftSight.
The program open dwg file and then convert to PDF fils automatically. This progress must not be stopped by any interupt.
But, some dwg files show the dialog when they open(please see below). My program hung untile close this dialog.
I don't want that dialog to appear.
Is it possible to set a default so that the dialog doesn't pop up when the document is opened? Which API should I use? Or what options should I set in DraftSight?
(dwg files are readonly)

The dialog:
"All unreferenced drawing scales are deleted. Select the one you want to restore from the Default scale list."
O Meters
O Yards
O All
ㅁ Use the system scale list


- DraftSight Professional 2022, SP1 x64, Windows 10