No coding needed!
The general advice is to download an EW model into a separate SketchUp file, not directly into your real model. Then examine it to see how “heavy” it is and whether it can easily be simplified. You should always use model info->Statistics to purge unused, as the model’s author may have left cruft in there. There are also clean-up extensions that can do a more thorough job and can do things such as merging coplanar faces.
But in the end, too many of the EW models do things like:
- use hundreds of segments for arcs that would look just fine with fewer. This multiplies because surfaces generated from the arcs likewise get too many faces.
- model tiny details that are too small to see (I once saw a model of a car that had over 5,000 edges in the license plate alone! In house models I often see things like a table lamp with thousands of edges and faces.)
- model interior details that are invisible except in section cuts and xray view
- include multiple copies of very detailed groups or components (models of trees and plants are particularly notorious for this)
Often for models with these sorts of flaws, it is easier to take basic shapes and sizes off the model and then start over on your own! Fixing an over-detailed model can be tedious and time-consuming.