Dialog with warning blocks python script

I’am opening a dwg file with python.

rs.Command('_-Open "{}" _Enter'.format(filepath))

But this dialog blocks script until I close it with hand. Which makes it impossible to run script in PowerShell.

How to disable all warning windows?


Hi @tmshv,

Can you provide a sample dwg file that repeats this behavior?

– Dale

Hi @Dale Fugier,
Any dwg file whose current layer is off, or whose current layer is on but doesn’t contain any object, can repeat this behavior. The following link is an example.

It would be very helpful if there is a way to disable the warning window.

111.dwg (96.5 KB)

Logged - https://mcneel.myjetbrains.com/youtrack/issue/RH-51402

– Dale