TheSwamp

CAD Forums => CAD General => CAD Standards => Topic started by: David Hall on July 16, 2008, 04:00:39 PM

Title: Auditing dwgs against the CAD standard
Post by: David Hall on July 16, 2008, 04:00:39 PM
I did a quick search, and didn't find any threads that talked about this, so here goes.

Does anyone have some code to check dwgs against their company standard?  I thought about making this a swamp project, but didn't know if anyone has any free time.  I know Autocad has the batch standards checker, but that is a little to generic for what I need.  It does provide some good info for a first pass of the dwgs.  I am also interested in what else I should be checking for.  My list includes

Can anyone add to this list?
Title: Re: Auditing dwgs against the CAD standard
Post by: David Hall on July 16, 2008, 04:02:41 PM
And should this become a project, does anyone know how to accomplish this w/o having to open every dwg?  I have never learned how to do this.
Title: Re: Auditing dwgs against the CAD standard
Post by: FengK on July 16, 2008, 06:55:56 PM
And should this become a project, does anyone know how to accomplish this w/o having to open every dwg?  I have never learned how to do this.

Are you only talking about VBA or LISP? If so, I guess you mean using ObjectDBX? There must be lot of examples floating around if you search "ObjectDBX".
Title: Re: Auditing dwgs against the CAD standard
Post by: JohnF on July 16, 2008, 09:41:05 PM
Programmers set the standards in the code so it is easier for drafters to comply.

The users who don't comply must revert to manually change entities and human nature being what it is most comply.
Title: Re: Auditing dwgs against the CAD standard
Post by: David Hall on July 17, 2008, 10:02:36 AM
Are you only talking about VBA or LISP?
I'm talking about using VBA, and maybe incorporating the ObjectDBX if I can
Title: Re: Auditing dwgs against the CAD standard
Post by: FengK on July 17, 2008, 01:35:25 PM
  • Everything By Layer

This might be quite time consuming if you use ObjectDBX and there is a large number of objects in the drawing because you can't (maybe I should say I don't know how to) make a selectionset using filter and you'll have to loop through each object to check its color, linetype, etc.

Quote
  • Image props-correct layer, insertion point, etc

Image insertion point? Are all the images in PaperSpace? Otherwise, are they all inserted at 0,0?

What are you plan to do after the checking? Do you want the code to automatically fix some problems or you just want it to output the result to a text file?

This should be a challenging and useful project. The problem is if you're talking about checking with that much details, it would be very hard to write the code that's useful to different companies.
Title: Re: Auditing dwgs against the CAD standard
Post by: jonesy on July 23, 2008, 04:29:38 AM
On this proposed program...
Would it be possible to check that, say someone has used the correct font style, but the user has over-ridded the font/height/colour etc? (Have I explained myself clearly)
Title: Re: Auditing dwgs against the CAD standard
Post by: Glenn R on July 23, 2008, 07:19:27 AM
Yes and yes Tracey.
Title: Re: Auditing dwgs against the CAD standard
Post by: Glenn R on July 23, 2008, 07:20:43 AM
It's actually already started here (http://www.theswamp.org/index.php?topic=24074.msg290954#msg290954).
Title: Re: Auditing dwgs against the CAD standard
Post by: jonesy on July 23, 2008, 07:50:20 AM
Thanks Glenn
This will be one very useful tool in the toolbox when its finished.