Extracting Tables From Drawings

Extracting Tables From Drawings

Type: Quick
Benefits:
Time Saver

A couple of hours of scripting turned 40+ DWG tables into clean Excel sheets. Saving days of manually filling it out and reducing the chance of errors.

A Closer Look

The Problem: The client gave 40–80 tables (with elevation and curvature data) as DWG drawings (I don't know why). Copying everything into Excel by hand would’ve taken days and left plenty of room for mistakes.
The Approach: I wrote a Grasshopper script that scanned the table geometry, extracted the text, and rebuilt everything into structured spreadsheets.
The Outcome: What could’ve taken 2–3 days was done in a few hours. The best part was that the tables changed 5–10 times throughout the project, and the script handled each update instantly

We had about 40–80 tables showing elevations and curvature at each chainage along a track. But instead of being in Excel, they came in DWG format (lines and text). Apparently, according to the client, is was the only way their software could export the data (which I still don’t quite believe).

But now we had all this important data locked inside a format that was painful to work with.

Copying it out manually would’ve taken days and probably introduced all sorts of errors. The good news was that the tables were fairly consistent across files. Still annoying to work with but not impossible to write a script to extract them.

And that’s what I did. I built a quick Grasshopper script that scanned the table geometry, pulled out the text, and exported clean everything into clean Excel sheets.

It wasn’t the most complex script I’ve written, but it made a huge difference on this project. What would’ve been a few days of mindless copy-pasting turned into a couple of hours of setup. And we got lucky.

The tables ended up changing about 5-10 times over the course of the project. Something we didn’t plan for. But with the script in place, every time a new set of tables came in, I just re-ran it and had clean Excel files ready almost instantly.

This is one of those times where computational design is really good at just taking the pain out of a really tedious task. Even if, honestly, it shouldn’t have been a problem in the first place.

Recent Projects

Extracting Center lines From models

Extracting Center lines From models

Quick Time Saver

A script that extracts structural analysis centerlines from 3D models, saving engineers from re-building the model from scratch

Visualising Data in 3D

Visualising Data in 3D

Quick Saved Time Increased Clarity

A quick script that colour codes any property of a model in 3D

Extract Midplanes and Thicknesses from Complex 3D Models

Extract Midplanes and Thicknesses from Complex 3D Models

Quick Clarity Efficiency

A script that extracts midplanes (surfaces at the center of solids) from a 3D model and color-codes them by thickness.