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

Unlock the full course today

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

Creating a new drawing

Creating a new drawing - AutoCAD Tutorial

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

Start my 1-month free trial

Creating a new drawing

- [Instructor] So far we've been working with drawings that are already open, but what if we wanna create a brand new drawing? We're gonna take advantage of the application services namespace and inside the application object, we're gonna work with a document collection to accomplish that. So let's go ahead and open up our exercise for this video. Open Project, and go to our Desktop. Exercise files, chapter four, and we're opening up the 04-04 solution. Inside the 04-04 solution the initialization class, there is a command along with this associated routine already built for us, and what we're going to do is we're going to assign or create a new variable that is connected to a document collection object. The variable's name is doc collect, or docCol and it's going to equal our application's DocumentManager. We've been working with a DocumentManager to get the MdiActiveDocument and we saw the DocumentManager with count in our last video. That's a document collection object. We're gonna…

Contents