342 | Chapter 28 Retrieving Data From a Drawing
Report generation is one of the primary features that sets AutoSketch apart
from a traditional drawing program.
Before you can generate a report, you must enter data. AutoSketch stores a
great deal of data in the drawing as you create entities. Graphic properties
such as color, style, and width are stored along with the geometric informa-
tion for each entity. However, reports are only available if fields have been
defined. For information on creating fields and storing information in them,
see the chapter titled “Storing Data in a Drawing,” which begins on page 333.
Creating a good report is a process of choosing what information to include
and to exclude from the report. You want to display the significant data and
nothing more. Provide too little information and your report isn’t a useful
source of data. Provide too much information and it is difficult to find the
pertinent facts.
Creating Reports
AutoSketch generates reports formatted in rows and columns like a spread-
sheet. Reports display information you store in the drawing. There are two
types of reports: detail and summary. Detail reports display information for
every entity in the selection set. Summary reports display information for
each symbol definition in the selection set along with a count of the number
of instances of each symbol. Summary reports exclude non-symbol entities.
You can display the sum of a column of numeric database fields in a detail
report.
You can export information contained in the report fields of a AutoSketch
drawing to other applications using the Windows Clipboard. Open the
report that you want to export and click Copy. This transfers all the data to
the Clipboard in standard text format and comma-separated values. This
information can then be pasted into most Windows applications.
Reports operate on the current selection set. If no entities are selected, the
report operates on the entire drawing. Additionally, you can include
selection criteria in the report to further refine the selection set.
The reports you create are available to all of the drawings you edit on your
system. However, for the reports to operate correctly, the drawings you try to
generate reports from must have all of the fields used by the report.