Is there a way to check in VBA if the design doctor has found errors in a drawing? I have a mass print script and it'd be handy to be able to skip printing any drawings that have errors like unatached dimensions and such.
Hi There,
Take a look at the "ErrorManager Interface" in the help files, you can find samples there.
Public Sub ErrorManager() Dim errorMng As ErrorManager Set errorMng = ThisApplication.ErrorManager Dim errors As String errors = errorMng.AllMessages End Sub
Regards,
Philippe.
I tried this and all I get is <ErrorsAndWarnings/> even though I can see errors in the sketch doctor. An suggestions? Is there maybe a document error manager?
The method above apparently can only pick up errors that happen while your code is running. If you just want to see if a document has an error or not there is a solution in a more recent thread of mine.