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.

Collections and loops

Collections and loops - AutoCAD Tutorial

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

Start my 1-month free trial

Collections and loops

- [Instructor] One of the things that we'll be usually working with is not just one object or two objects, but a collection of objects, lots of them. Where there's a bunch of strings or numbers. Or even a collection of AutoCAD lines that we're working with. So, we're going to be looking at how we can create these lists, or collections. And then how we can iterate through them, how we can loop through them to accomplish a specific task. So, we're gonna look at two different types of collections. And, so let's go ahead and open up our solution for this exercise, or video. I'm gonna go to Exercise Files, chapter three. And we're going to the 03-03 solution. Now, unlike the other initialization classes, and if, of course, it didn't open up in your Solution Explorer, you can open it here. But, unlike the other initialization classes, you'll notice that we have a new command already written for us. The Editor variable ed is already assigned. And we have two variables already written for us.…

Contents