Hi, I’ve been working on a SketchUp exporter and when I try to open the exported models in SketchUp Pro, I get these errors sometimes:
So I went and removed the faces which area was < 0.0001, and it solved the errors. The thing is, when doing that I remove more faces than SketchUp would if I let it fix my models, so may I know exactly when SketchUp flags a plane equation as invalid? I don’t want to be removing valid faces unnecessarily.
I was having the same problem, even on small object like a square on red or green axis, once i duplicate the object i was having trouble to select it or color it. Therefore i proceeded this way to fix the problem:
In Sketchup open the “Windows” menu, find the “File info” then click on “Purge unused” then click on “Fix Problems”
Save the file.
Restart Sketchup.
Open a new file and “Import” the previously saved one.
The original poster is asking for information to effect a coding solution using the C API.
viz:
… and BTW, the button for manually running Fix Problems is: Window (menu) > Module Info (dialog) > Statistics (panel) > Fix Problems (button)
However, with SketchUp 2021 and higher, Fix Problems always runs automatically. If you have found a situation where it does not automatically fix problems when opening or importing a SKP file, then please post an example model file that gets by the fixing. The Devs definitely will want to know this and open an issue for it.