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.

Create a function

Create a function - AutoCAD Tutorial

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

Start my 1-month free trial

Create a function

- [Instructor] In our last video, we created a routine that was connected to a command using what is called a method attribute. Method attribute is named command method. Now this command method attribute is called to the AutoCAD API really made our routine a command that showed up in the window of AutoCAD when we loaded our software. And when we fired the command, it ran the routine. It was connected. Now that's really neat, but that's not the only routine type that you can build in C# using the AutoCAD API. So at times, you're going to want to get more information. So we're going to create a different type of routine called a function. And we're gonna see how to be able to really work and use the information from the function to feed our command. We're also gonna see a little bit of the differences between them. So, let's go ahead and open up our exercise projects. I'm gonna go from the start page, or of course you can do it from the tool bar. Go to my desktop and exercise files…

Contents