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

Unlock the full course today

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

Working with a document's properties

Working with a document's properties - AutoCAD Tutorial

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

Start my 1-month free trial

Working with a document's properties

- [Instructor] So far we've already been working with the document properties every single time we've gotten the Active Documents Editor, but let's see how we can get more information as well as work with any document. So we're going to open up an exercise here. There's our exercise that's connected with this module, and we're going to go to our desktop, Exercise Chapter Four 04-03, and open up the 04-03 solution. Now when we do that we're going to go ahead to our Solution Explorer, Initialization, and we're going to create a new command here. I'm going to do it outside the Command Region, keeps it nice and clean, makes it a little easier to read as we're working through this exercise. So our command is called DocProp, and we're going to add a routine, Public Subcommand DocProp. Again, I'm just going to collapse the regions here, make it a little easier to read. What we're looking for is to get the current document's properties. And so I'm going to create a variable named acDoc, and…

Contents