From the course: AutoCAD Add-ins Using VB.NET

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 Add-ins Using VB.NET

Start my 1-month free trial

Getting a selection set

- [Instructor] In our last exercise, we began using the editor input namespace to be able to select an entity. And we used within the editor, the ability to have the prompt selection entity result written back to us. We get an object ID. Very useful, but most of the time, we want to work with more than just one entity, or one object, at a time. So, we're going to look at in this exercise how we can use a selection set. How do we build a selection set within the editor input namespace? So, we're going to go to our project in our chapter six, 06-04 exercise. We're going to do 06-04 solution. And go to our solution explorer, of course, and open up our initialization class once it's finished loading. So, inside our initialization class, we already have a command that began or that we started here, the LISelectSet command has been written for us. We have the editor from the current drawing assigned to the ed variable, and we have the database, the current database, as well as a transaction…

Contents