Subscribe
Tutorial search

AutoCAD API Tutorials


We hope that you will enjoy our AutoCAD API tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own AutoCAD API tutorial to our site. Thank you !

Sort by:
Vba: Integrating With Microsoft Excel - Part 2
Vba: Integrating With Microsoft Excel - Part 2
This article is the second in a series on integrating the programming power of AutoCAD VBA with the functionality found in other Windows applications—specifically, Microsoft Excel.
Difficulty:
Vba: Integrating With Microsoft Excel - Part 5
Vba: Integrating With Microsoft Excel - Part 5
In this segment, we`ll examine two sample applications developed to query drawing data and report findings in spreadsheet format, including the reporting of layer-entity counts using spreadsheet graphics, and we`ll examine a truly powerful utility that can externalize data by using a spreadsheet row as an entity ATTRIBUTE substitute.
Difficulty:
Vba: Integrating With Microsoft Excel - Part 4
Vba: Integrating With Microsoft Excel - Part 4
In this segment, we focus on pulling information from a preexisting Excel spreadsheet into the AutoCAD VBA environment.
Difficulty:
Vba: Integrating With Microsoft Access - Part 3
Vba: Integrating With Microsoft Access - Part 3
In this article you will learn to navigate, edit, and delete records in a database.
Difficulty:
Introduction To Autocad - Index Of Commands
Introduction To Autocad - Index Of Commands
Index of AutoCAD commands.
Difficulty:
Discover The Vba Extensibility Library
Discover The Vba Extensibility Library
This month we€™re going to look at the VBA Extensibility Library. Many of you have worked happily in VBA without realizing the power available to you through the Microsoft VBA Extensibility Library. The Microsoft Visual Basic Extensibility Library 5.3 (I€™ll refer to this as the VBE from now on in this article) provides objects that you can use to work with the Visual Basic Editor and any VBA projects that it contains.***Free Registration Required***
Difficulty:
How To Write A Diesel Macro, Part 1
How To Write A Diesel Macro, Part 1
For a dozen years, the status line of AutoCAD remained unchanged. Though Release 11, the status line displayed the O (ortho is on), S (snap is on), T (tablet is on), the x,y-coordinates, the and the layer name. Newer additions included P (paper space is on) and the current color.
Difficulty:
Discover The Vba Extensibility Library, Part 2
Discover The Vba Extensibility Library, Part 2
This month we€™re going to continue our exploration of the VBA Extensibility Library. I€™ve heard from many of you over the last month and it is exciting to know that so many are eager to explore the power of the Microsoft VBA Extensibility Library. In this month€™s article we explore how to navigate the various parts and pieces that make up a typical VBA macro.***Free Registration Required***
Difficulty:
Vba: Working With Selection Set Filters
Vba: Working With Selection Set Filters
I recently received a request from a reader to outline the use of AutoCAD selection set filters when coding in VBA.
Difficulty:
Vba: Integrating With Microsoft Access - Part 1
Vba: Integrating With Microsoft Access - Part 1
This article is the first in a series on integrating the programming power of AutoCAD VBA with the functionality found in other Windows applications—specifically, Microsoft Access.
Difficulty:
Incorporating Vba Modules
Incorporating Vba Modules
VBA macros allow you to add custom AutoCAD commands to accomplish repetitive or complicated tasks not available as native AutoCAD commands. VBA programming is beyond the scope of this article, but we review various methods to incorporate VBA macros into your work. In our example, we`ll be using the ad_PlotLayouts macro available in the VBA section of this site.
Difficulty:
Vba: Integrating With Microsoft Excel - Part 6
Vba: Integrating With Microsoft Excel - Part 6
If you`ve been following along with VBA master dave espinos-aguilar since the beginning of this series, odds are you`re almost a master yourself. Almost, but not quite. Join dave for the sixth and final installment of Integrating VBA with Microsoft Excel.
Difficulty:
How To Write A Script File
How To Write A Script File
The last two lessons, we looked at the Diesel macro language, which has a programming logic as unclear as the acronym`s meaning: "direct interactively evaluated string expression language." This lesson, we go the other extreme and look at AutoCAD`s clearest customization possibility: the script.
Difficulty:
Autocad Menus: Building A Menu Template, Part 5
Autocad Menus: Building A Menu Template, Part 5
The following tutorial shows you how to enhance menu macros with the help of special characters and/or DIESEL expressions.
Difficulty:
Autocad Customization Overview, Part 2
Autocad Customization Overview, Part 2
VBA projects are stored as DVB files, which are accessed from the VBA Manager in AutoCAD (VBAMAN command). Once a DVB file is selected, it can be edited within the Visual Basic editing window to create the required objects, forms, modules, and macros that comprise the project, as shown in Figure 1. Afterwards, the DVB file can be loaded into AutoCAD, and you can run a macro within AutoCAD that runs the program to see how it works.
Difficulty:
Total Tutorials in Category: 22