2012

Table Of Contents
Summary
For embedded or loaded global projects, enter the name of the macro to run.
If the macro name is not unique among all the currently loaded projects, you
must also include the name of the project and module in which the macro is
found. For example, to run a macro named Test in a project named Project1,
and a module named Module1, enter the following information at the Macro
name prompt:
Project1.Module1.Test
To run a macro in a global project that is not currently loaded, enter the name
of the DVB file that contains the macro, as well as the project and module
names. For example, if the Test macro described previously is contained in a
file called Acad_Projects.dvb, and that file is not loaded, you can execute the
Test macro by entering the following at the Macro name prompt:
Acad_Projects.dvb!Project1.Module1.Test
The Acad_Projects.dvb file is loaded and the Test macro is executed. The
Acad_Projects.dvb file remains loaded once the macro has been completed.
VBASTMT
Quick Reference
See also:
Overview of AutoCAD VBA
Executes a VBA statement at the AutoCAD Command prompt.
NOTE Microsoft
®
Visual Basic
®
for Applications software (VBA) is no longer installed
with AutoCAD. For more information, visit http://www.autodesk.com/vba-download.
Summary
A Visual Basic statement is a complete instruction that can contain keywords,
operators, variables, constants, and expressions. A statement generally occupies
a single line, although you can use a colon (:) to include more than one
statement on a line.
VBA statements are executed in the context of the current drawing.
2012 | Chapter 22 V Commands