From the course: AutoCAD: Building Add-ins with C#

Unlock the full course today

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

Working with document properties

Working with document properties - AutoCAD Tutorial

From the course: AutoCAD: Building Add-ins with C#

Start my 1-month free trial

Working with document properties

- [Instructor] We have been working with the document properties every single time we've gotten the active documents editor. A document in the AutoCAD API is the drawing itself. It is the drawing object. So within the document object, there are many properties and methods and so forth as well. Let's see if we can get a little bit more information as well as how to work with any document in this video. We're going to go ahead and open up our exercise for this video by going to our desktop, Exercise Files, chapter four, and going into the 04-03 solution. Inside the 04-03 solution, the initialization class, there's a command already created called LIDocumentProperties connected, or linked, to that routine named cmdDocProp. What we're going to do is we're going to go ahead and get a document object and assign it to a variable. So we're going to go ahead and get the document. Notice that the document object type is part of the ApplicationServices namespace. Because we already have it…

Contents