Hi Drake,
("Love the Drake!" --Seinfeld)
DGNDOC.BA is a neat macro that documents DGN files (thus "DGNDOC"). When combined with Design File Processor (filepro.ma, available from Bentley Select) or your own home-brewed batch processor (VB, VC++, Delphi, another macro, etc.), you can create a variety of reports on dozens of design files, including:
-Active file: file name and dimension (2D or 3D).
-Active file: levels off/levels on, or whichever is shorter (think about it).
-Active file: cell names, including which are shared, and how many orphan cells.
-Active file: fonts.
-Active file: global origin.
-Active file: level symbology.
-Active file: level usage (which levels actually contain elements).
-Active file: line styles and line codes.
-Active file: working units.
-Reference files: full name.
-Reference files: attach name (shows configuration variables).
-Reference files: logical name.
-Reference files: description.
-Reference files: scale (ok, needs some work: integer:1 is ok, 1:integer is crummy).
-Reference files: display off/on status.
-Reference files: locate off/on status.
-Reference files: levels off/levels on, or whichever is shorter (think about it).
-Reference files: level symbology.
You can make neat reports such as:
p:\12345\cad\axyzcp02.s01,axyzcp02.dgn,p:\12345\cad\axyzcp02.dgn p:\12345\cad\axyzcp02.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzcp03.s01,axyzcp03.dgn,<---File Not Found p:\12345\cad\axyzcp03.s01,axyzcp03.dgn,<---File Not Found p:\12345\cad\axyzcp03.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzcp03.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzfp02.s01,axyzfp02.dgn,p:\12345\cad\axyzfp02.dgn p:\12345\cad\axyzfp02.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzfp03.s01,axyzfp03.dgn,<---File Not Found p:\12345\cad\axyzfp03.s01,axyzfp03.dgn,<---File Not Found p:\12345\cad\axyzfp03.s01,axyzfp03.dgn,<---File Not Found p:\12345\cad\axyzfp03.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzfp03.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn p:\12345\cad\axyzfp03.s01,borxyz01.dgn,p:\12345\cad\borxyz01.dgn
which identifies missing reference files (display is "on" not "off," so it must be necessary), and when imported into a spreadsheet and sorted, can tell you where a specfic reference file is used.
DGNDOC supports over twenty command-line options specifically for batch operations.
*** Works with V7 (MicroStation SE and J) Only! ***
-Source code: I can't distribute the code, since my employer "owns" DGNDOC. But I can guide you in the right direction if you have a specific MicroStation Basic question. You may also post-process the reports and replace "NYC TMC (The MicroStation Community of NYC)" with your firm's name if you wish.
-Reposting, redistributing, etc.: You may freely distribute DGNDOC.BA, as long as you don't sell it.
-Raster reference files: Cannot be accessed directly from MicroStation Basic; however, I'm looking into a MDL solution.
-Future versions: Well, I've finally reached the maximum allowable macro size (64kb), with over 1300 lines of code. I doubt DGNDOC will get anymore comprehensive. I will continue to make corrections to errors, though.
I'll e-mail it to anyone that wants it...
Simon Wurster
Chairperson
The MicroStation Community of New York City
http://tmcnyc.home.mindspring.com/