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.

Create a command routine

Create a command routine - AutoCAD Tutorial

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

Start my 1-month free trial

Create a command routine

- [Instructor] In our last video we created a class from scratch and we took advantage of what we learned from the classes that were created by the AutoCAD wizard that were used when we created our plugin project to begin with. Now not only did we create that class and added a using statement at the beginning, but we built three new routines right inside of our class. Now two of those routines took advantage of an interface. We interfaced with another object within that class and those routines are required the initialize and the terminate, because of that interface. We also created a routine that will be called from the command line and it will act like a command within AutoCAD as our very first AutoCAD command part of that plugin that we're going to build. The thing is with all of these routines we didn't add any code, so in this video let's add some code to our routines, build our routines out a little bit, and while we do so we're gonna learn a little bit about variables as well…

Contents