Extracting Center lines From models

Extracting Center lines From models

Type: Quick
Benefits:
Time Saver

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

A Closer Look

The Problem: A model built for analysis and a regular 3D model are very different things. Engineers often need to rebuild their entire analysis model from scratch.
The Approach: A Grasshopper script that inteprets the 3D model’s geometry and extracts usable analysis lines from it.
The Outcome: A reusable project tool that gets engineers 70–80% of the way to a clean analysis model. If the incoming model changes, the script can be re-run too

A classic problem in computational design is translating geometry between 3D models. Especially when going from architectural or manufacturing models to structural ones.

Structural engineers typically work with “stick” models (just lines and points). While architectural or manufacturing models are created to reflect what it looks like in real life, structural analysis models only represent exactly what the computer needs for analysis.

So when an engineer is handed a detailed 3D model, they often have to rebuild the entire analysis model from scratch.

/detailed centerlines.png

Pink lines are the centerlines of the model

That’s where scripting can help. I wrote a Grasshopper script that scans the geometry in the 3D model and extracts the analysis centerlines from it.

It’s not perfect. There is always a need for some manual cleanup, but it does get you 70-80% of the way there. And the best part is that if the model changes a lot (which it often does), you don’t need to start over. Just re-run the script and it will generate a new analysis model in minutes.

There is one caveat. These scripts usually need to be tailored to each project / model. A script that works well on one model might not work on another, especially if the modeling conventions are different.

But even with that limitation, the time saved can be significant. And once you’ve done the upfront work, you’re left with a tool that turns a repetitive, error-prone task into something fast, reliable, and repeatable.

Recent Projects

Extracting Tables From Drawings

Extracting Tables From Drawings

Quick 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.

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.