TheSwamp
CAD Forums => CAD General => CAD Standards => Topic started 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
- Layers- Names/Color/Linetype
- Text Styles
- Titleblock/info block properties-correct layer, insertion point, etc.
- Image props-correct layer, insertion point, etc
- Dimension Style settings
- Use of Mtext vs Dtext, Null text strings
- XREF props-correct layer, insertion point, relative pathing, etc
- Everything By Layer
- Revisions using double digits( 01, not 1)
Can anyone add to this list?
-
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.
-
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".
-
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.
-
Are you only talking about VBA or LISP?
I'm talking about using VBA, and maybe incorporating the ObjectDBX if I can
-
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.
- 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.
-
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)
-
Yes and yes Tracey.
-
It's actually already started here (http://www.theswamp.org/index.php?topic=24074.msg290954#msg290954).
-
Thanks Glenn
This will be one very useful tool in the toolbox when its finished.