0

I am running an autocad script against a library of 40,000 DWG files. All the script does is open each drawing and verify that the correct drawing number is on the drawing. This is for quality control checking.

My problem is some of the drawings have minor inconsequential errors that I wish to ignore. These errors cause dialog boxes to appear which halt the execution of the script and require a manual intervention. With 40,000 drawings this is getting old fast. I have attached examples of the types of inconsequential errors that are being encountered.

My question is how to suppress all errors and force AutoCAD to load the drawing without regard to errors?

error1

error2

error3

Thanks

Josh
  • 189
  • 1
  • 12

1 Answers1

0

Instead calling acad.exe for your script, call accoreconsole.exe, which is the best for this scenarios (easier to avoid manual interactions).

Here is a quick .BAT that you can use with AutoCAD Console (and here some additional information)

FOR %%f IN (C:\dwg_folder\*.dwg) DO "C:\Program Files\Autodesk\AutoCAD 2016\accoreconsole.exe" /i "%%f"  /product ACAD /s "C:\folder\yourScript.scr" /l en-US

As an alternative, you can consider Design Automation API, which have a AutoCAD running on the cloud for batch processing.

Community
  • 1
  • 1
Augusto Goncalves
  • 8,493
  • 2
  • 17
  • 44
  • I should have mentioned using AutoCad 2012. No core console. But would work if we had newer version. – Josh Jul 26 '16 at 19:23
  • added a paragraph with a webservice option. Don't believe you can avoid all message boxes while automating AutoCAD tasks. Under Options you can hide some, not all of them. – Augusto Goncalves Jul 26 '16 at 19:28