.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get an "Audit" result from any AutoCAD Drawing through API

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
gadurai
1395 Views, 2 Replies

How to get an "Audit" result from any AutoCAD Drawing through API

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

2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: gadurai

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

Drive CAD With Code

EESignature

Message 3 of 3
dgorsman
in reply to: gadurai

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.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost