Autocad Programming Using C#.Net – Beginner Course
Autocad Programming Using C#.Net – Beginner Course
Last updated 2/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz

This is your ultimate guide to learning C# programming in AutoCAD.

What you’ll learn
Learn and understand Fundamentals of C# Programming
Understand .NET Framework and learn Visual Studio IDE 2017
Learn and Understand AutoCAD .NET API structure
Learn how to create your own AutoCAD Plugins
Manipulate AutoCAD Objects using C#
Create AutoCAD objects using C#
Learn how to use Selection Sets and Filters using C#
Develop 2 different projects: 1) Create your own Drawing TitleBlocks for different Paper Sizes through code 2) Create an Audit Program to count different entities in the drawing
Requirements
Knowledge of AutoCAD
Programming knowledge is advantageous but not necessary as we will go through the basics of C# Programming
Description
This is a very intensive course that gives the student opportunity to learn C# Programming fundamentals, learn about .NET Framework, learn how to use Visual Studio 2017 and most of all learn how to program AutoCAD .NET API. This course will walk you through the process of developing your own AutoCAD Plugins that will extend AutoCAD Functionalities.

Overview

Section 1: Course Outline and Introduction

Lecture 1 Course Outline

Lecture 2 Introduction

Lecture 3 Who is this course for?

Lecture 4 What Will I Learn from this Course?

Lecture 5 What is CSharp (C#)?

Lecture 6 What is AutoCAD .NET API?

Lecture 7 What are the advantages of programming in AutoCAD .NET API?

Section 2: .Net Framework and Visual Studio 2017 Community Edition

Lecture 8 Section Overview

Lecture 9 .NET Framework Architecture Overview

Lecture 10 .NET Framework Class Library, Common Type System, Common Language Runtime

Lecture 11 More about.NET Framework Common Language Runtime (CLR)

Lecture 12 Visual Studio 2017 Integrated Development Environment (IDE)

Lecture 13 Visual Studio 2017 IDE Demo

Section 3: C# Fundamentals

Lecture 14 Section Overview

Lecture 27 C# Operators Overview

Lecture 28 C# Assignment Operators

Lecture 29 C# Assignment Operators – Demo

Lecture 30 C# Unary Operators

Lecture 31 C# Unary Operators – Demo

Lecture 32 C# Primary Operators

Lecture 33 C# Primary Operators – Demo

Lecture 34 C# Equality Operators

Lecture 35 C# Equality Operators – Demo

Lecture 36 C# Additive Operators

Lecture 37 C# Additive Operators – Demo

Lecture 38 C# Multiplicative Operators

Lecture 39 C# Multiplicative Operators – Demo

Lecture 40 C# – Relational and Type Operators

Lecture 41 C# – Logical, Conditional and Null Operators

Lecture 42 C# – Logical, Conditional and Null Operators – Demo

Lecture 43 C# Keywords (Reserved Words)

Lecture 44 C# – Conditionals Overview

Lecture 45 C# Conditionals – If-Then-Else Statement

Lecture 46 C# Conditionals – If-Then-Else Statement – Demo

Lecture 47 C# Conditionals – Switch Statement

Lecture 48 C# Conditionals – Switch Statement – Demo

Lecture 49 C# – Loops Overview

Lecture 50 C# Loops – For Loop

Lecture 51 C# Loops – For Loop – Demo

Lecture 52 C# Loops – Foreach Loop

Lecture 53 C# Loops – Foreach Loop – Demo

Lecture 54 C# Loops – While Loop

Lecture 55 C# Loops – While Loop – Demo

Lecture 56 C# Loops – Do While Loop

Lecture 57 C# Loops – Do While Loop – Demo

Lecture 58 Modifiers Overview

Lecture 59 Access Modifiers – Overview

Lecture 60 Access Modifiers – Accessibility Matrix

Lecture 61 Public Access Modifier

Lecture 62 Access Modifiers – Non Derived (Same Assembly)

Lecture 63 Access Modifiers – Derived Class (Same Assembly)

Lecture 64 Access Modifiers – Non Derived Class (different Assembly)

Lecture 65 Access Modifiers – Derived Class (different Assembly)

Lecture 66 Debugging Overview

Lecture 67 Debugging – Demo 1

Lecture 68 Debugging – Demo 2

Lecture 69 Debugging – Demo 3

Lecture 70 Error and Exception Handling – Overview

Lecture 71 ExceptionHandling – Demo 1

Lecture 72 ExceptionHandling – Demo 2

Lecture 73 ExceptionHandling – Demo 3

Lecture 74 Introduction to Object Oriented Programming (OOP)

Section 4: Exploring AutoCAD .NET API

Lecture 81 AutoCAD .NET API – Overview

Lecture 82 AutoCAD .NET API Assemblies

Lecture 85 AutoCAD .NET API Object Hierarchy

Lecture 86 AutoCAD .NET API – Application Object Overview

Lecture 87 AutoCAD .NET API – Document Object Overview

Lecture 88 AutoCAD .NET API – Database Object Overview

Section 5: Creating AutoCAD Objects using AutoCAD .NET API

Lecture 89 Creating AutoCAD Objects using AutoCAD .NET API – Overview

Lecture 92 Creating a MText Object – Lab

Lecture 93 Creating a Circle Object – Lab

Lecture 94 Creating an Arc Object – Lab

Lecture 95 Creating a LWPolyline Object – Lab

Section 6: Manipulate AutoCAD Objects

Lecture 96 Manipulate AutoCAD Objects – Overview

Lecture 97 Copy Object using C# – Theory

Lecture 110 Scale Object using C# – Lab

Lecture 111 Copy Object Exercise

Lecture 112 Copy Object Solution

Lecture 113 Erase Object Exercise

Lecture 114 Erase Object Solution

Lecture 115 Move Object Exercise

Lecture 116 Move Object Solution

Lecture 117 Mirror Object Exercise

Lecture 118 Mirror Object Solution

Lecture 119 Rotate Object Exercise

Lecture 120 Rotate Object Solution

Lecture 121 Scale Object Exercise

Lecture 122 Scale Object Solution

Section 7: Exploring AutoCAD Dictionaries (Layers, LineTypes, TextStyles)

Lecture 123 Exploring AutoCAD Dictionaries – Layers Overview

Lecture 124 Listing all the Layers in the drawing using C#

Lecture 125 Creating a Layer in AutoCAD using C#

Lecture 126 Updating a Layer in AutoCAD using C#

Lecture 127 Turning the Layer On/Off in AutoCAD using C#

Lecture 128 Thawing/Freezing Layer in AutoCAD using C#

Lecture 129 Deleting a Layer in AutoCAD using C#

Lecture 130 Locking/UnLocking a Layer in AutoCAD using C#

Lecture 131 Assigning a Layer to an AutoCAD object using C#

Lecture 132 Exploring AutoCAD Dictionaries – LineTypes Overview

Lecture 133 Listing all the LineTypes in the drawing using C#

Lecture 134 Loading a LineType in the drawing using C#

Lecture 135 Setting the Current LineType in AutoCAD using C#

Lecture 136 Deleting a LineType in AutoCAD using C#

Lecture 137 Setting a LineType to an object using C#

Lecture 138 Exploring AutoCAD Dictionaries – TextStyles Overview

Lecture 139 Listing all the TextStyles in the drawing using C#

Lecture 140 Updating current TextStyle Font in AutoCAD using C#

Lecture 141 Setting the Current TextStyle in AutoCAD using C#

Lecture 142 Setting a TextStyle to an object using C#

Section 8: User Input Functions

Lecture 143 User Input Functions Overview

Lecture 146 Using GetPoint Method – Lab

Lecture 147 Using GetDistance Method – Lab

Section 9: Selection Sets and Filters

Lecture 150 Selection Sets and Filters – Overview

Lecture 155 Using SelectWindow Method – Lab

Lecture 156 Using SelectCrossingWindow Method – Lab

Lecture 157 Using SelectFence Method – Lab

Lecture 158 Using PickFirstSelection Method – Lab

Lecture 159 Using SelectionSet Filters – Overview

Lecture 160 Using SelectionSet Filters – Selecting Lines

Lecture 161 Using SelectionSet Filters – Selecting MTexts Lab

Lecture 162 Using SelectionSet Filters – Selecting Polylines Lab

Lecture 164 Using SelectionSet Filters – Selecting Blocks (BiFoldDoors) Lab

Lecture 165 Using SelectionSet Filters – Selecting objects in a Layer (Walls) Lab

Lecture 166 Using SelectionSet Filters – Selecting all objects in a Layer (Stairs) Lab

Lecture 167 Using SelectionSets and Filters – Exercises

Section 10: Developing Title Block Project – Hands On!

Lecture 168 TitleBlock Project – Overview

Lecture 169 Creating Project and TBlock Class – Lab

Lecture 170 Creating Classes for each Paper Sizes – Lab

Lecture 171 Creating TitleBlock Class – Lab

Lecture 172 Handling User Selected Paper Size – Lab

Lecture 173 Creating the TitleBlock Border Lines – Lab

Lecture 181 Project Check on the Labels

Lecture 182 Creating Drawing Information Texts

Lecture 183 Debugging the TitleBlock Project – Lab

Lecture 184 Completing and Running the TitleBlock Plugin

Lecture 185 Audit Drawing Project – Overview

Lecture 186 Audit Drawing Project – Demo

Lecture 187 Creating the AuditDrawing Project

Lecture 188 Creating the AuditDrawing DisplayOnScreen Method

Lecture 189 Creating the AuditDrawing Write to TXT File Method

Lecture 190 Creating the AuditDrawing Write to CSV File Method

Lecture 191 Creating the AuditDrawing Write to HTML File Method

Lecture 192 AuditDrawing Plugin Demo

Lecture 193 Creating the AuditBlock Method

Lecture 194 Creating the AuditBlock GatherBlocksAndCount Method

Lecture 195 Creating the AuditBlock DisplayOnScreen Method

Lecture 196 Creating the AuditBlock WriteToTXTFile Method

Lecture 197 Creating the AuditBlock WriteToCSVFile Method

Lecture 198 Creating the AuditBlock WriteToHTMLFile Method

Lecture 199 AuditBlock Completed Component – Demo

Section 11: Conclusion

Lecture 200 Conclusion

This course is intended for all AutoCAD Users who have a desire to create their own Commands or Plugins and extend AutoCAD functionalities to the next level,For those who are interested in Computer Programming and wanted to learn how AutoCAD and C# work together,For AutoLISP and VBA Programmers who wanted to learn new language and skills and be even more productive