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.
Collections and loops - AutoCAD Tutorial
From the course: AutoCAD Add-ins Using VB.NET
Collections and loops
- [Instructor] One of the things we'll be usually working with is not just one object or two but a collection of objects whether it's a bunch of strings or numbers or even lines that we're working with and we're going to be iterating through. So, we're going to combine and take a look in this exercise how to work with collections, the type of collections we may be dealing with as well as how to loop through these collections and so, we're going to do this in our exercise. Go ahead and open up our exercise here, 03-03 and our 03 solution. We go to our Solution Explorer, the initialization class, I have my commands, I'm going to expand that out but I am going to collapse each command that we've already done and notice, there's already a new command created for us and we're familiar now with the command method attribute and how to create the method, the public sub routine there, so I've already done that for us and I've created two new variables and fed values to those variables. One is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.