PDA

View Full Version : Dwg Audit tool



Data Wrangler
04-11-2007, 03:00 PM
Following on from the exchange drawing thread...

Has anyone made a tool to go through an individual drawing and make sure that all of the things that Autoplant expects to be there actually are there?

Derek

HybridAWD
04-11-2007, 03:02 PM
that would be nice. I know we have run across a few things that happen in the p&id that we'd like to know about. For example just to name a few, Line Id annotation losing it's link to the process line and Instrument bubble issue when exchanging.

Data Wrangler
04-11-2007, 07:25 PM
I was thinking about a VBA app that would give a percentage complete at the end - like a score that we could use to test a drawing before we exchange, or use as a check to see we are doing things correctly. Of course, being able to pick out the bad data would be nice - and it would also be nice to be able to put back something that is missing!

Derek

dave
04-11-2007, 07:52 PM
Great idea Derek. Let's develop that tool. Question, how much lisp would it require? Could it all be developed in VBA? Let's list the scoring "criteria"


Lines annotated
Arrows Linked
Reducers have two sizes
Instruments linked to something
Valves are attached to lines
Line To-From fields are populatedI am missing a lot..keep it going and we will make it

dave
04-11-2007, 07:54 PM
moved to Wish List

Data Wrangler
04-12-2007, 05:29 AM
I've actually sat down with the criteria and written some pseudo code to try and figure out how this could work. If you get Peter's excellent document (http://www.davetyner.com/forum/attachment.php?attachmentid=76&d=1166043477) about the links between objects in the drawing I think it can be done.

I was going to try and keep it to VBA because I've never really written anything in VBA for Autocad before, and I can see some of its usefulness, especially for the interface.

Derek

Data Wrangler
04-12-2007, 05:32 AM
Looking at your list - there's more there than I was thinking! I was just going to ensure the fundamental links - every slp has the associated components, etc. I can see where you are going, though....

Data Wrangler
04-12-2007, 06:12 AM
Bentley people-

In going through the references to turn on the ADO libraries, I see there are a lot of Autoplant specific libraries listed. Some of them sound useful, like the "Autoplant Project Database Browser component". Are these documented and available for use for third parties?

Derek