Autodesk - Autocad - Vba Integrating With Microsoft Excel PDF
Autodesk - Autocad - Vba Integrating With Microsoft Excel PDF
Autodesk - Autocad - Vba Integrating With Microsoft Excel PDF
Home | Products - Store - Support - Autodesk Subscription | About Autodesk - Contact Us | Search
United States
Product Information
VBA: Integrating with Microsoft Excel - Part 1
How to Buy
Autodesk Subscription By dave-espinosa aguilar
So... as with any serious investment of your time, it pays to step back
and examine what getting up to speed on Visual Basic (and the
integration of AutoCAD VBA and Microsoft Excel) brings to your table
in the first place. The more you learn about the software you already
own, the more powerful it gets and the more impact it stands to have
on your productivity. If the nature of your drawings and designs lends
itself to spreadsheet functionality, then consider setting aside notions
of cranking out code, and go Zen with me for a bit as we consider
some potentially profound questions... beginning with "Why should any
AutoCAD user care that integration of AutoCAD and Microsoft Excel is
even possible?"
There are some ingenious tricks and techniques out there like using
the old SSX.LSP routine, the internal FILTER command and various
Want to specify the name of a block with an attribute value that falls
within a certain numeric range and have those entities meeting that
criteria reported with full text formatting in a real spreadsheet
template? You can with VBA. Imagine reporting attribute information
or extended entity data from entities based on their location in the
drawing or even based on the way in which they are being used or
were originally generated (for example, count all blocks named "x" that
were inserted by CAD operator "y" during month "z" of last year). If
you're a SQL guru, you could actually query blocks with attribute data
using a SQL query statement—entirely through VBA.
actually ways (using AutoCAD VBA and Excel) to do this kind of thing.
The stuff of dreams.
For years, people have been using TEXT entities to report tabulated
data on drawings without the benefit of tabulation tools to do it, and a
TEXT entity doesn't know the difference between a dollar and a toilet.
Spreadsheets have been cranking out this kind of information for over
a decade. Think hard about this one, folks. Maybe, just maybe, the
process of creating schedules is possible without getting a headache.
Figure 1: Creating a schedule even this simple is time-consuming to construct and tally
without a spreadsheet.
Figure 2: When you bring Excel grids into your drawings, you have complete control
over text formatting, column width, cell border thickness, and even background
patterning.