Show a CSV or XLSX file as a table that follows the file, make schedules from blocks and objects, and write tables to CSV or XLSX. For anyone keeping data in spreadsheets or counting blocks.
Before you start
- A licence that includes 2D drafting.
- Stratal CAD reads and writes XLSX workbooks itself; no spreadsheet program is needed.
Steps: link a table to a CSV or XLSX file
- Click Annotate > Tables, open the arrow under Link CSV… and choose Link CSV…, then choose the file.
On the command line:
TABLE, thenLat the corner prompt and "Enter the CSV or XLSX file to link". - For a workbook with more than one worksheet, at "Enter the worksheet to show" type its name.
?lists them and Enter takes the first. - Click the table's top-left corner.
The table follows the file: whenever it changes, the table shows the new content. Its cells come from the file, so TABLEDIT does not change them. Its title, header row and alignment are its own.
From a workbook the table shows the cells as last saved: text, numbers (to 15 significant digits), the values of formulas, TRUE or FALSE, error values, dates and times (2026-10-24, 14:30), and other number formats as the spreadsheet shows them (25% shows as 25%). Merged cells stay merged unless the table has merges of its own. Chart sheets are left out.
Steps: make a schedule from blocks or objects
- Select block references, or other objects, to count.
- Click Annotate > Tables, open the arrow under Link CSV… and choose Extract Data (
DATAEXTRACTION, aliasDX). - At "Specify insertion point (top-left corner) or [File/Static/Properties]" click the corner.
There is one row per block and set of attribute values, with how many there are (two identical doors are one row, Count 2). Other objects get one row per kind. The table follows the drawing: it lists every reference of the selected blocks and every object of the selected kinds, and its rows change as they are added, changed or erased.
Options
| Option | What it does |
|---|---|
| DATAEXTRACTION Static | A table that does not follow the drawing. Run DATAEXTRACTION again after changes. |
| DATAEXTRACTION Properties | Adds columns of the objects' Layer, Length or Area. |
| DATAEXTRACTION File | Writes the schedule to a CSV or XLSX file instead of placing a table. |
| TABLEEXPORT | Writes a table to a file. |
| ATTEXTRACT | Writes the attributes of block references to a CSV or XLSX file (also on Insert > Attributes). |
Steps: write a table to a file
- Select the table.
- Click Annotate > Tables, open the arrow under Link CSV… and choose Export CSV…, or type
TABLEEXPORT. - Name a
.csvor.xlsxfile.
- CSV holds what the table shows: formulas as their values, the title first.
- XLSX writes a worksheet named after the table's title. Numbers stay numbers, text stays text (a part number
007stays text), and each formula is kept with its value, so the spreadsheet recalculates it. Columns are as wide as their longest text, the header row is bold, merged cells stay merged, and cell fills and text colours come along. Rules and cell borders are not written. - Select several tables and name an
.xlsxfile to write them all to one workbook, a worksheet each. A CSV file holds one table only.
Example
Count the doors on a plan: select all door blocks, run DATAEXTRACTION, type P, Layer, and click a corner. The
schedule lists each door type and attribute set with its count and layer, and updates when you add a door.
Tips and common mistakes
- A workbook is refused when its parts would unpack to more than 64 MiB each or 256 MiB together, or a worksheet has more than 200 000 cells. Stratal CAD says why.
- Linked tables need the file to stay where it was. If you move the file, link it again.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "There is no file ..." | Check the path and name. |
| "The workbook cannot be linked: ..." | The XLSX file could not be read. The reason follows. |
| "The workbook has no worksheet ... (? lists them)." | Type ? to see the worksheet names. |
| "Select block references or other objects; nothing to extract." | Select what to count before or during DATAEXTRACTION. |
| "... is not a property a schedule lists (Layer, Length, Area)." | Only those three property columns are available. |
| "A CSV file holds one table: name an .xlsx file ..." | You selected several tables. Use an .xlsx name. |
| "The file was not written: ..." | The folder may be read-only or the file open elsewhere. |
Related
Related
- Plotting a drawing to PDF
- Printing and plotting a drawing
- Setting up a sheet set
- Publishing and printing a sheet set
- Importing and exporting DXF
- Importing and exporting IFC
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.