From the course: AutoCAD Add-ins Using VB.NET
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Create a class - AutoCAD Tutorial
From the course: AutoCAD Add-ins Using VB.NET
Create a class
- [Instructor] Now that we've gotten a little bit of an overview of the classes that were created for us by the wizard, we're going to just remove those. We're going to create our own class from scratch. But we're going to learn from that overview that we had of the classes that we did in the exercise previously. So we're going to open up our project. And this is going to be 02-04. And I'm going to choose the 02-04 solution file. As usual, we're going to go to the solution explorer. In this case I'm going to right click and delete the myCommands.vb and then right click and delete the myPlugin.vb as well. Within MyProject I'm going to right click and I'm going to choose to add a class. It's going to come up and say, okay, well you could add all these other things as well. Well I already said I wanted to add a class and I'm going to name this class Initialization, Initialization. So a new file is added for us, Initialization.vb and name the class Public Class Initialization for us…
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.