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.

Getting a selection set

Getting a selection set - AutoCAD Tutorial

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

Start my 1-month free trial

Getting a selection set

- [Instructor] In our last video, we began using the editor input namespace to be able to select an object using the get entity function within the editor object. Now, most of the time, we wanna work with more than just one entity though or one object at a time. So we're gonna look at, in this video, how to do that through the use of a selection set. I'm going to go ahead and open up our exercise for this video. Desktop, Exercise Files, chapter six, the 06-04 solution. Once that's open, you'll notice in the initialization class, a lot actually has been written already for you. And that's to speed this along because the end result, we're gonna have a pretty substantial function, built a command that's going to be able to collect and read the total length of a bunch of selected lines. But what we really wanna focus in on is how to work with a selection set. So that's why a lot of this is already written. We know how to, of course, get the editor and the database. We know how to create a…

Contents