From the course: AutoCAD Add-ins Using VB.NET

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Working with the DocumentCollection

Working with the DocumentCollection - AutoCAD Tutorial

From the course: AutoCAD Add-ins Using VB.NET

Start my 1-month free trial

Working with the DocumentCollection

- [Instructor] One of the objects within the application object that we find in the application service's namespace is the document collection, and this is how we work with the drawings. And so let's see what we find within the document collection. We're going to open up our exercise project here under our desktop, exercise, Chapter Four, and this is the 04-02 exercise project that we're going to open up. And if I go to my Solution Explorer, what we're going to do, we're going to create a new command. And this command, collapse all the other commands we've created. And this command is actually going to allow us to kind of read back to the user and tell the user and tell us, really, how many documents or drawings are currently open. So as we've gotten a lot of practice so far, we're going to create a new command method, and we're going to name this command LIDocCount and just step outside the attribute brackets there, less than greater than brackets, and create a new subroutine, and…

Contents