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.

Bringing it all together

Bringing it all together - AutoCAD Tutorial

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

Start my 1-month free trial

Bringing it all together

- [Instructor] In our last video, we learned about data binding within our WPF window. Now what we're going to do is we're going to see how the command is brought to completion. We're gonna build a command that will change the layer of the selected objects in the drawing to the layer selected in our window. Let's go ahead and open up our exercise. Desktop, exercise files, chapter eight, and we'll go to the 0803 solution. Inside the 0803 solution, we'll go to our initialization class. The command's been changed a little bit for us. What we've added now is a call to the editor, of the current drawing. We've created a prompt selection options and we've fed it to the editor get selection. The result is written to the variable prompt selection result, this is all information we learned as we looked at the editor input name space. And as we saw, since there's no keywords, since OK is not what's returned, we're just going to exit the routine. So if we're at this line, then prompt status OK…

Contents