AutoCAD VBA Programming - Beginner course
4.2 (116 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
537 students enrolled

AutoCAD VBA Programming - Beginner course

This course gives you a solid understanding of AutoCAD VBA concepts and fundamentals to develop your own applications.
4.2 (116 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
537 students enrolled
Created by Arnold Higuit
Last updated 6/2018
English
English [Auto-generated]
Current price: $27.99 Original price: $39.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3.5 hours on-demand video
  • 5 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • You will be able to develop VBA Applications and create Graphical User Interface (GUI) that interacts with the Users and AutoCAD.
  • You will be able to draw different AutoCAD Objects using VBA using Forms and User Controls.
  • You will be able to manipulate AutoCAD Objects and automate repetitive tasks.
  • You will learn the VB/VBA Syntax and should be able to use it with other Microsoft Office Applications (e.g. Excel, Word)
Requirements
  • All you need is knowledge of AutoCAD Software with basic understanding of commands and objects.
Description

This course will walk you through the VBA Integrated Development Environment (IDE). You will also learn and understand the AutoCAD VBA Object Model through presentation and examples.

We will cover the User Forms and Controls and explore AutoCAD Database Dictionary

Conditions and Decision Structures will also be covered extensively.

We will be writing actual applications using different VBA Drawing techniques.

You will also understand how to debug and handle errors in your program.

By the end of the course, you should be able to develop your own small to medium complexity applications.

Who this course is for:
  • All AutoCAD users from beginner to advanced who wanted to extend their knowledge beyond AutoCAD and be more productive.
  • This is also for AutoLISP programmers who wanted to learn a different way of manipulating AutoCAD objects.
Course content
Expand all 42 lectures 03:38:55
+ Introduction
2 lectures 10:35

In  this lesson, you will have a high level overview of the course as well as get a glimpse of how and what AutoCAD VBA is. Also, you will get to know the advantages and benefits of using VBA.

Preview 04:23

Define the Course Content by outlining every single section of the course. From setting-up the environment, understanding AutoCAD Object Model to Debugging and Error Handling.

Course Content Identified
06:12
+ VBA Integrated Development Environment (IDE)
4 lectures 21:37

Discuss the content of the course as well as the requirements for installing VBA IDE. Also, identifying the versions of AutoCAD that requires separate installation of vBA IDE Component.

Preview 00:47

Walkthrough the process of downloading the VBA IDE Component from Autodesk website and installing it.

Preview 03:50

VBA IDE Components will be discussed in detail by mentioning their respective usage and purposes in relation to your programming experience.

Preview 02:56

We will examine each of the IDE Components to learn and understand how to use them in our programming as well as know their features and usage that can be very beneficial during code development.

Preview 14:04
+ Understanding AutoCAD Object Model in VBA
2 lectures 12:36

We will explore the VBA Object Model Structure and understand how the objects relate to each other and how to use and easily apply them in the code. We will go through several programs to demonstrate how they are being used by going through some of the AutoCAD Objects collections.

Examining AutoCAD VBA Object Model Structure
06:33

This is a continuation of the previous lesson where we further examine some of the AutoCAD Objects collections. By the end of this section, you should be comfortable using them and work with those objects with ease.

Examining AutoCAD Object Model Structure Part 2
06:03
+ Using Variables in VBA
2 lectures 15:35

This video will explain what are the data types to be stored in a variable and how to declare them.  Also, this video explains how to consume, concatenate and watch values of the variables.

Working on Variables
01:18

This video will walk you through how to use variables with different data types. You will see 5 different programs that covers every single datatype.

Using Variables in the Program
14:17
+ User Forms and Controls
9 lectures 01:05:36

This video gives the high level overview of different controls and outline the list of Controls to be explored further and see how they work in action.

User Forms and Controls Topic Breakdown
02:20

This video explores the Label, Textbox and CommandButton Controls in a simple program. It also explains the User Form and show you how to play with the Control's Properties.

Using Label, Textbox and Command Button Controls
09:53

This video will show you how to use the ListBox Control and how it gets populated with all the layers in the drawing. 

Preview 05:51

This video will show you how to use the ComboBox Control. You will also learn how to retrieve the LineTypes in the drawing as it is being added in the ComboBox Control.

Using ComboBox Control
09:00

This video explores and explains the usage of CheckBox Control in a program.

Using CheckBox Control
08:19

This tutorial explores the OptionButton Control and compares its usage with the CheckBox Control.

Using OptionButton Control
02:43

This video explores the MultiPage Control in detail and uses it in the example program to generate an Audit Type Report for all the Fixtures and Doors in the drawing.

Preview 09:34

This video is a continuation of the previous one and extends its functionality by creating another page for Electrical Components.

Using MultiPage Control Continued..
14:29

Frame Control is very useful in grouping different controls in a single container. This video will show you how to use it when you are designing the form.

Using Frame Control
03:27
+ Conditionals and Decisions in VBA
6 lectures 23:07

Lists and explains the different conditions and decisions and operators (both Conditional and Logical) that will be explored further in the succeeding videos.

Conditions and Decisions Course Outline
01:18

This video will show you how to use the if-then-else condition in the actual program using the InputBox to receive value from the user's input.

IF-THEN-ELSE Condition
02:09

Sometimes there are more conditions in the program. This is where the if-then-elseif condition comes in. This video will show you how to use it by validating/checking the object type selected from the drawing.

Preview 03:43

This video will show you how to use different conditional operators in an actual program. You will have a good understanding how those conditional operators work and how to use them accordingly.

Conditional Operators in VBA
03:53

There are cases where you have to validate the program in more than one condition. This is where the logical operator works. This video will show you how to use AND, OR and NOT operators.

Logical Operators in VBA
07:18

Another way of handling different conditions is by using Select Case Statement. This video will show you how to use it in the program.

SELECT CASE Statement in VBA
04:46
+ Looping and Iterations in VBA
5 lectures 13:11

This video explains the 4 ways of using Looping and Iterations in your program. You will have a high level understanding on those 4 different ways.

Looping and Iterations Overview
01:57

This video will show you how to use the Do-While Loop in the program by looping through the objects in the AutoCAD drawing. You will learn how to loop through the selection set as well as how to use the counter.

Using DO-WHILE Loop in VBA
04:16

This video will show you how to use the Do-Until loop and describe the differences with the Do-While Loop.

Using DO-UNTIL Loop in VBA
01:49

This video will show you how to use the For..Next Loop. It is the simplest form of looping in VBA and you will see it in action.

Using FOR..NEXT Loop in VBA
02:07

This is a very interesting video where you will see how to use the for-each-next looping structure by going through each of the Layer in the AutoCAD Dictionary. Also presented is how to loop through the LineTypes in the drawing.

Preview 03:02
+ Drawings Objects in VBA
6 lectures 26:03

This video provides a high level overview of objects to be drawn in this section.

Drawing Objects Overview
01:18

This video will show you one way of drawing a Line object based on 2 points that uses the Getpoint function.

Preview 03:10

This video will walk you through how to get input from the user. Also, you will learn how to validate the values entered. You will learn lots of programming techniques from this video.

Draw a Line Object using Points from User's Input
07:21

This video will show you how to draw a circle by using the Getpoint and Getreal Utility functions.

Draw a Circle Object Using Utility Functions
03:07

This video will show you how to draw a Text object by getting the values from the user's input using Getstring, Getpoint and Getreal Utility functions.

Draw a Text Object using Utility Functions
05:23

This video will show you how to draw both Lightweight and Heavyweight Polylines. You will also learn how to declare an array of doubles that will be used as a storage for the vertices.

Draw a LWPolyline and Polyline Objects
05:44
+ Code Debugging in VBA
3 lectures 15:15

This video gives you the high level overview each topic to be covered in this section.

Code Debugging Overview
00:41

In this video, we will walk through the actual code debugging using the complete application to draw a text based on the user's input. You will also learn how to make changes on the Form control based on the user's action.

Code Debugging in VBA Demo
12:22

This is a continuation of previous video. This also show you how to create a separate sub method by calling it from the Click event code generated by the form. You will also learn how to step through/over/out of the code.

Code Debugging in VBA Demo Continued...
02:12
+ Error Handling in VBA
2 lectures 14:37

This video lists all the different ways of handling error in VBA. This also outlines the types of error that VBA have. The Err object is also mentioned.

Error Handling Course Outline
01:52

This video will walk you through the process of handling error and how to remediate or fix them once encountered. This will also give you some technique on how to accept or validate user's input.

Error Handling in VBA Demo
12:45