How to escape to warnings when opening or creating a file with Dynamo

Hello,

I made some scripts that are opening files in background or creating file exports, and many times for different reasons.

I get those kind of warning windows, stopping the script run process, and in any of the warnings are not going to affect to the output needed, so how to choose a warning option (ok/close) to skip all of them?

  1. My default system printer does not work with the print setting of the view to export or print.
    image

  2. Revit file link needs coordination review.
    image

  3. Many spaces are encosed in same region or some spaces are not enclosed in a region.
    image

Maybe look into pyrevit which has a warning supressor tool coded into it.

1 Like