Entity Report

Plans: Free CAD Tools Geo Tools Urban Highways Aero
Command: CAPCAD_REPORT_ENTITY Updated 2026-11-19 Also in: Español Português
Ask about this page
Answers from this page only. General assistant
Command CAPCAD_REPORT_ENTITY
Ribbon CapCad tab › CAD Utilities panel › Tools split button › Entity Report. It also appears on the Construtivo, BIM and Geo Tools GENERIC panels
Category CAD Utils: Segment
Form EntityReportForm "CapCad Entity Report", modeless: it hides itself while the report runs, comes back at the end, and stays open until you close it. Running the command again brings the open window back
Hosts AutoCAD, BricsCAD, GstarCAD, ZWCAD and ARES Commander
Also opened by the Entity Report… button on the Tools tab of Reports
Related pages Reports (the project quantities) · Entity panels (the same reading, live in a palette) · Quantities Dashboard · Cap Property Sets

The generic report: any entity, any property, one spreadsheet. Where Reports know what a marking is and what a sign is, this command assumes nothing: it pours the drawing into a table and lets you decide what goes in each column.

  • Filters by type, by layer and by block name. Three filters combined, with wildcards (*, ?, #), accepting lists pasted straight out of a spreadsheet.
  • Columns the other reports do not have. Every attribute tag, every dynamic property, every property set and every XData application becomes a column of its own, including XData written by other programs.
  • Groups and sums on the spot. One row per combination of values, with the quantities summed and counted, without a pivot table.
  • Many drawings in one table. The Files input reads a list of dwg files without opening them in the editor.
  • Edits back into the drawing. The Grade output opens a grid where the property-set columns can be typed over and are written to the entities.
  • Ready-made setups. Presets for the common questions, your own setups saved to a file, and every box remembered between sessions.

What it does

The command walks a set of entities, drops whatever fails the filters, and turns each surviving entity into a row, with one column per property you asked for. Then, if you want, it groups those rows and sums the numeric columns. Finally the table goes to Excel, to a text window, to an editable grid, to a table in the drawing, or out as CapData (JSON).

There is no project intelligence here: the command does not know what a marking, a chevron or a sign is. It knows CAD types (polyline, block, hatch…) and CAD properties (layer, linetype, area, attributes, XData, property sets). That is exactly why it covers what the project reports cannot: checking someone else's drawing, finding every block of a given name, summing areas per layer, extracting the XData of a family of entities.

The form is modeless: it hides while the reading happens and reappears afterwards, with the outcome written in its title bar. So you can change one option and generate again without reopening anything. It opens showing its top part; the arrow button (33) unfolds the rest.

Workflow

  1. If you are going to use the Select input, you can select first and then call the command: an existing selection is reused.
  2. Run CAPCAD_REPORT_ENTITY.
  3. Choose the input (1 to 3) and, for All and Files, tick the spaces (52, 53).
  4. Either pick a preset (4), or tick the entity types yourself, using the four shortcut buttons (19, 22, 27, 30) as a starting point.
  5. Unfold the form (33) and narrow it down with the layers filter (61) and, for blocks, the block name filter (57).
  6. Tick the properties that become columns (36 to 47, 55, 56, 58 to 60).
  7. For a summary instead of the item-by-item list, fill in the Grouping frame (62 to 66).
  8. Choose the output (8 to 15) and the number format (67).
  9. Click Ok (48). The form hides, a progress window follows the reading (its Cancel keeps the rows read so far), and the form comes back with the outcome in its title bar: N row(s) from M scanned. A similar sentence is written to the command line.
  10. Adjust and generate again as often as you need; close the window with its title-bar button.

The form

CapCad Entity Report, as it opens

As it opens: input, presets, output, entity types and properties.

CapCad Entity Report, unfolded

Unfolded with the arrow button (33): block and entity options, filters, space, grouping, number format and the samples.

Input

# Control What it does
1 All Reads the whole drawing: model space and every paper-space layout, as set in the Space frame (52, 53). The CAD Space column gets Model or the layout name.
2 Files Asks for one or more dwg files and reads each one (model space and layouts, per 52 and 53) into a single table, with the file in the DwgFilePath column. A drawing that is already open is read as it is in the editor; the others are read from disk without being opened. At the end a window lists each file with its outcome. Presets and grouping do not apply to this input.
3 Select Uses the selection made before the command; with none, it asks for one on screen. Selected by default. With nothing selected the title bar answers Nothing selected.
4 Bounded area Asks for one or more closed polylines (or circles, ellipses, closed splines) and reads what lies wholly inside them, in the boundary's space, like the CAD's Window Polygon: an entity that crosses the edge is left out. Blocks, points and texts count by their insertion point, so a block whose drawing spills over the edge is still in. The boundaries themselves are not reported. With nothing inside, the title bar answers Nothing inside the area.

Presets

# Control What it does
4 Presets list Ready-made reports for the active country profile. The generic profile lists Blocks list (every block with its insertion point) and Blocks quantify (blocks counted by name); other profiles list their own. Clicking one fills the entity boxes, the filters and the grouping fields with its setup. With presets selected (Ctrl and Shift select several), Ok produces one table per preset, each with its own setup and named after it. Clicking an empty spot of the frame clears the selection.
5 Load... Opens a .cappreset file and applies it: the entity type boxes it holds, and clears the output choice.
6 Save... Saves the entity type boxes to a .cappreset file.
7 Save all... Not available in this version.

Output

# Control What it does
8 Excel Opens a visible workbook in Excel, sheet Entity Report (or the preset name), with the header coloured by column family, autofilter on and the widths fitted. When Excel is not installed, this option is disabled and a red Excel not found appears.
10 Save With presets: each preset's workbook is saved as <preset name>.xlsx in the drawing's folder (the drawing must have been saved). Without presets nothing is saved: saving is up to you, in Excel. On by default.
12 Tabs With several presets: one workbook with a sheet per preset. Off: one workbook per preset. On by default.
9 Tab text Opens the report window: the table with a Filter field and the Copy all, Save... (tab-separated text or CSV), Excel and Close buttons. Clicking an ObjectID shows that entity in the drawing.
11 Draw table Asks for the top-left point and draws the table in model space as lines and text.
14 CAD table Asks for the top-left point and inserts a native CAD table in model space, in the current table style.
13 Grade Opens the result in the CapCad report grid, a dockable palette. Clicking a row selects the entity and frames it. The property-set columns (pset …) can be edited in the grid: what you type is written to the entity's property sets (automatic and formula properties stay read-only). The ObjectID column is always included with this output. With the Files input the grid is read-only.
15 CapData Opens a text window with the table as JSON: an array of objects, one key per column. This is the format CapCad uses to exchange data.
16 Include number column Adds the Number column, numbering the rows from 1 to N. It is applied before grouping: if you group, it disappears unless it is on the Keep list. Off by default.

No output is selected when the form first opens: Ok refuses until you choose one, and tints the Output frame blue.

Entities

The four shortcut buttons tick and untick the boxes in one go:

# Button Leaves ticked
19 Geometries Arc, Line, Circle, Polylines, Closed and Open. Everything else unticked.
22 Areas Hatch, Solid, Circle and Closed (with Polylines unticked, so only closed polylines come in).
27 All Everything.
30 None Nothing: Ok refuses until you tick at least one type (or pick a preset).
33 ↓ / ↑ Unfolds and folds the lower half of the form.
# Control What it does
17 Arc Arcs.
20 Line Lines.
23 Circle Circles.
25 Polylines Every polyline: lightweight, 2D and 3D, closed or open.
28 Closed Closed lightweight and 2D polylines, even with Polylines unticked.
31 Open Open lightweight and 2D polylines, even with Polylines unticked.
18 Point Point entities.
21 Text Single-line and multiline text, dimensions and leaders.
24 MText Saved with the form; not used by this version: multiline text follows Text (21).
26 Dimension Saved with the form; not used by this version: dimensions follow Text (21).
29 Block Block references. Only this type goes through the Block name filter (57).
32 Hatch Hatches.
35 Solid 2D solids.
34 All other Everything not covered above: splines, ellipses, images, viewports, wipeouts, 3D solids, proxy objects.

Properties

Each ticked box adds one or more columns.

# Control Columns it produces
36 Alignment data For the entities that have an insertion point (with 47 ticked): alignmentEixoName, alignmentOffset (negative to the left), alignmentSide, alignmentAngle, alignmentExtension (the station, within 200 units of the alignment) and, when the drawing has a coordinate system, alignmentInsertionPointLat and alignmentInsertionPointLon of the foot on the alignment. Only available when the project has an alignment; otherwise the box is disabled. Off by default.
37 GIS data Latitude and longitude, when the drawing has a coordinate system: InsertionPointLatLon (with 47 ticked) and, for open curves, OpenPolylineStartLatLon and OpenPolylineEndLatLon. On by default.
38 ID ObjectID: the entity's handle. Pasted into CAPCAD_SELECT_BY_HANDLE, it gives you the entity selected in the drawing. On by default.
39 Layer Layer. On by default.
40 Entity name ObjectName: the CAD class name (AcDbPolyline, AcDbBlockReference, AcDbHatch…). On by default.
41 Other Four columns: LayerLinetype (the layer's linetype), EntityLinetype (the entity's), LinetypeScale and Lineweight. Off by default.
42 ? Lists the four columns of Other.
43 Cap Area Three columns: capcadLinetypeFactor (the factor of the layer's linetype), capcad Area (the hatch area or, for linear entities, length × constant width × factor; a polyline with no width gets 0) and, for blocks, block.area (the area CapCad has on record for that block name, 0 when none). It also brings the Other columns. Ticking it ticks the Geometries types, Hatch, Solid and Other. Off by default.
44 ? Explains how Cap Area is computed.
45 Specifs Saved with the form; not used by this version: the type-specific columns always come out (see Columns the report produces).
46 ? Lists the type-specific columns.
47 Insertion point InsertionX and InsertionY, only for blocks, points, text and mtext. A polyline has no insertion point and is left without the columns. Off by default.

The CAD Space and DwgFilePath columns come out always (the second is blank while the drawing has never been saved).

Block and entity options

# Control What it does
55 Include block attributes One column per attribute tag found, named att <TAG>. Each row carries that block's value. On by default.
56 Include block dynamic attributes One column per dynamic-block property, named dyn <Property>. The Origin property is ignored. On by default.
57 Block name filter List of masks the block's effective name must match (for a dynamic block, the definition name, not the anonymous *U12). Empty = all. Applies only to blocks.
58 Include XData One column per registered application with data on the entity, with the application name as the header. The ACAD application is omitted. Since CapCad records its links in XData, this is where the group id and the signage marks show up, and also the XData of other programs. On by default.
59 Include text content for texts The TextContent column, with the text of each Text and MText. On by default.
60 Include property sets One column per property of the entity's property sets, named pset <Set>.<Property> (with the names the active style gives them). In Civil 3D, the entity's own Civil 3D property sets come too, as c3d <Set>.<Property>. On by default.
61 Layers filter List of masks the entity's layer must match. Empty = all. Applies to every entity and is the first test made.

Both filters use the same grammar:

  • accepted separators: comma, semicolon and line break, so you can paste a whole spreadsheet column;
  • wildcards: * (any stretch), ? (one character), # (one digit) and […] (one of the characters listed; [!…] none of them);
  • a mask matches the start of the name: LFO finds every layer starting with LFO; to find everything containing it, write *LFO;
  • the layers filter tells capitals from small letters; the block name filter does not;
  • one matching mask in the list is enough.

Space and Excel

# Control What it does
52 Model Includes model space. On by default.
53 Paper Includes all paper-space layouts, each identified by its name in the CAD Space column. On by default.
54 Excel: numbers as text Writes every Excel cell as text, so Excel does not reformat codes and numbers. Off by default.

The space boxes apply to the All and Files inputs. Unticking both makes Ok refuse, asking for at least one space.

Grouping

Filled in, this frame swaps the item-by-item list for a summary: one row per distinct combination of the key columns' values.

# Control What it does
62 References to count The key columns. One output row per distinct combination of their values. Empty = no grouping.
63 To sum up The columns summed within each group. Typically Area CAD and Length.
64 Keep The columns listed in 66 travel with the summary. Selected by default.
65 Delete The columns listed in 66 are removed from the result.
66 (field below them) The list of columns 64 and 65 refer to.

The three fields share one grammar: names separated by commas, each optionally quoted (which allows a comma inside a name) and optionally given an alias with as:

"Layer", "BlockName" as "Block"

The alias renames the column before grouping; from then on it is by the alias that the other fields must refer to it.

When you group, the result gains a qtd column with the number of rows in each group.

Two combinations worth knowing:

  • No grouping (62 empty) with Delete: nothing is grouped, but the columns listed in 66 are removed from the list. This is how you trim the table without summarising it.
  • Grouping with Delete: the summary comes down to the keys, the sums and qtd, and the list in 66 removes some of those too.
# Control What it does
67 Number format The format applied to every numeric cell produced: lengths, areas, linetype scale, coordinates, numeric dynamic properties. The list offers 0 to 0.000000 and max (up to 15 decimals); the field also accepts typed text. Blank means 0.000000.
48 Ok Validates and generates. Passing, the form hides, the reading runs, and it comes back.
49 Cap ATT+ IN... Runs CAPCAD_BLOCK_ATTRIBUTE_IMPORT, which writes a spreadsheet's values back into block attributes (see Blocks and attributes).
51 Block batch insert... Runs CAPCAD_BATCH_BLOCK_GRID (see Batch insert).
50 Block batch alignment insert... Runs CAPCAD_BATCH_DEVICE (see Batch insert).
68 Sample General Asks for confirmation, then downloads and opens a sample drawing to try the report on.
69 Sample Grouping The same, with a sample drawing made for the grouping fields.
70 Sample Points Asks for confirmation, opens a sample drawing and loads a sample alignment into its project, so Alignment data (36) can be tried.
71 (video icon) Opens the tutorial video in a Portuguese session; in other languages it is not available in this version.
72 Info Opens a short note about the report.

Columns the report produces

Besides the columns switched on by the Properties boxes, each entity gets the columns that make sense for its type:

Column When it appears Content
CAD Space always Model or the layout name.
DwgFilePath always The drawing's full file name (the read file, with the Files input).
PolylineClosed any curve (line, arc, circle, polyline, spline, ellipse) True or False.
Length any curve The length measured along the curve.
Area CAD closed curves and hatches The area.
ConstantWidth lightweight polylines with a non-zero constant width The width. A variable-width polyline does not get the column.
OpenPolylineStart / OpenPolylineEnd open curves The end coordinates, as X;Y.
TextContent Text and MText, with 59 ticked The text.
BlockName block references The block's effective name.
att <TAG> blocks with attributes, with 55 ticked One column per tag.
dyn <Property> dynamic blocks, with 56 ticked One column per property.
pset <Set>.<Property> entities with property sets, with 60 ticked One column per property.
(application name) entities with XData, with 58 ticked The data recorded by that application.

In the Excel output the header is coloured by family, so the sheet reads without a legend:

Header colour Family
CapCad blue, white text Identity: ObjectName, ObjectID, CAD Space
Beige (papaya) Layer
Light grey Geometry, text, block, insertion point, attributes, dynamic properties and property sets
Green, white text Latitude and longitude columns
No fill Everything else: linetypes, XData, alignment columns

Remembered between sessions

Everything. On closing the window, every check box, every option, every text field, the number format and the preset selection are written to your user preferences and restored the next time it opens, the layer and block filters included.

The practical consequence: if the command "found nothing", check the filters and the preset selection before anything else. They may be left over from an earlier session.

Notes

  • There are no result figures on this page. What the command produces depends entirely on the drawing you have open.
  • The table outputs write to the drawing. Draw table and CAD table add entities to model space; the other outputs only read.
  • On the Select input the CAD Space column always reads Model. Select entities on a layout and they are labelled as if they were in model space. With All, the label is correct.
  • A preset uses its own setup. With presets selected, the form's entity, property and grouping boxes play no part; only the spaces (52, 53) and the output are taken from the form.
  • The number column does not survive grouping. It is created before grouping; after the summary only the keys, the sums, qtd and whatever is on the Keep list remain.
  • The block name filter filters nothing but blocks. Filling it in with Block (29) unticked has no effect at all; filling it in with other types ticked does not exclude them.
  • The Excel output saves no file without presets. It opens a new, visible workbook. Close Excel without saving and the report is lost: use Save... on the Tab text window when the intention is to archive.
  • Alignment and GIS columns need the insertion point. For blocks, points and texts they come only with Insertion point (47) ticked.
  • CAPCAD_XDATA_CLEAN is this report's counterpart. It erases the XData that column 58 reveals, other applications' included.