This routine from Mat Kirkland is designed to work with AutoCAD Civil 3D. It will iterate a user-specified directory full of drawings and open each drawing programmatically using ObjectDBX, searching model space for Civil 3D surfaces. If one or more drawings containing a surface are found, a report is created in Excel and displayed for the user; otherwise, a message is displayed at the Command line. Start by loading the LISP routine, then type in the command BFindSurf. A directory selection dialog will appear. Select the desired location and press OK. This is a great example of iterating multiple drawings using ObjectDBX, which for those who don’t know is many times faster than opening the drawings in the AutoCAD/Civil 3D editor itself. In my test, it opened and iterated five drawings in just a couple of seconds. Keep an eye out for some similar routines that work with other Civil 3D objects in the coming months. |