VBA for AutoCAD®

ThisDrawing.ModelSpace

by Will on December 6, 2010

ThisDrawing.ModelSpace is a very useful way to access the ModelSpace of your drawing through VBA or VB.NET.

When developing tools that draw entites in a drawing, we can sometimes use ThisDrawing.ModelSpace, forgetting that the tool might actually end up being used in ..read more

{ Comments on this entry are closed }

Someone recently asked about determining if a point resides within a polyline using VBA. There are a few ways to achieve this, some being more complex than others, each with their own advantages. However, there is one way that is ..read more

{ Comments on this entry are closed }

VBA in AutoCAD® – Tutorial 2: Subroutines

by Will on November 18, 2010

Introduction

This tutorial assumes that you have read all previous tutorials, but have no other VBA knowledge for AutoCAD® or otherwise.

In this tutorial, I will explain the basics of subroutines.

Subroutines

In the last tutorial, I explained some basic code. The observant of ..read more

{ Comments on this entry are closed }

VBA in AutoCAD® – Tutorial 1: Introduction

by Will on November 18, 2010

Introduction

Knowing a little bit of programming can be extremely useful in the AutoCAD® environment. Before you cringe with dread at the prospect of having to learn a programming language, it sounds far more difficult than it really is. Especially since ..read more

{ Comments on this entry are closed }