Hi,
I would like to get the result of "Audit" command of any Autocad drawing through API using Db services.
Is this possible?.
It would be helpful for me to identify the Corrupted or error Contains drawing before procees my Customized command through API.
Thanks in Advance.
Regrads,
Appadurai.G
Solved! Go to Solution.
Solved by norman.yuan. Go to Solution.
Although Autodesl.AutoCAD.DatabaseServices.Database has a method Autid(), this method is a "place holder" and is not implemented up to current AutoCAD version (2014). So, no, there is no .NET API available for you to do drawing auditing.
While the not implemented Database.Autidt() method may imply Autodesk would eventaully implement it in .NET API, no outsider knows when it would happen. You could hold your breath for a few days to see if AutoCAD 2015 does it, but don't be disappointed too much if it is not there.
Norman Yuan
You could always use the conventional Try/Catch(/Finally) approach: when catching errors either log the offending entity, or fix it and re-throw, depending on what the error is.