CleanUp³
Cleans up and optimizes your SketchUp model.
CleanUp³

Features

  • Fixes duplicate component definition names ( When in model scope )
  • Purge unused items
  • Erase hidden geometry
  • Erase duplicate faces
  • Erase lonely edges ( Except edges on cut plane )
  • Remove edge material
  • Repair split edges
  • Smooth & soft edges
  • Put edges and faces to Layer0
  • Merge identical materials
  • Merge connected co-planar faces

Menus & Toolbars

  • Plugins » CleanUp

Requirements

Related Links

CookieWare

I'd be happy if you donate a cookie (or a beer) if you find my plugins useful.

Reviews

firstly thank you for this plugin. I install it but i cant find. i have 2017

ThomThom's picture

Did you also install the required TT_Lib linked in the description?
Are you getting any error messages?
Is the extension enabled in the Extension Manager?

I feel that this plugin isn't finished. There is something wrong with the purging process, because whenever I try to clean the model, it SketchUp doesn't respond, and for hours on end, too. Some models are easily purge-able, but there are some weird components/groups that don't seem to want to be purged, and then cause SketchUp http://unitedstatesmapz.com/

Tom can you please help me? I did evething that you said to unblock my extention and I still can't use it, still shows signature is 'outdated' can you please help me? I havent use the extension for 5 weeks and I reallu need

ThomThom's picture

Setting the extension Loading Policy to Unrestricted or Approve Unidentified Extensions will allow you to load extensions with outdated signatures.

The signature system was changed for SU2017 and CleanUp haven't been updated since then.

Thank you fo your reply..
that is the issu I already did that and I still can't use the extension.
That is a issue, you have any idea what can be?

ThomThom's picture

If your Loading Policy is Unrestricted then the signature is not related.

Hard to tell what's going on without knowing more.

1. What is your SketchUp version?
2. Are you using mac or pc? (What version?)
3. Did you install the required TT_Lib?
4. Are you seeing any error messages when SketchUp starts up?
5a. If SU2017, is the extension listed in the Extension Manager?
5b. If SU2016 or older, is the extension listed under Preferences > Extensions?
6. Is the extension marked as enabled?
7. When you say you cannot use the extension, what is it that you are observing and what is expected behaviour?

1- 2017 version 17.2.2554
2- mac OS Sierra version 10.12.4
3- I never install the TT_Lib (maybe thats is the problem) how I proceed after install?
4- no errors
5 - yes is listed
6 yes it is
7 is shows outdated signature still.. even after your intructions

THANKYOU SO MUCH,

ThomThom's picture

7. Since you have your Loading Policy set to Unrestricted the signature won't affect anything. The message will still appear until this extension is updated.

Can you elaborate on what isn't working? From what I gather the extension is loaded. And you see the menu item under the Extension menu?

What are you doing when it's not working, and exactly what isn't working?

https://gyazo.com/e2dd2cafe5347639108d8563ca84294d
This is what happens in my case, there is nothing else I can say about it. I have the settings as you've said, still nothing changes. It's worked on another version of Sketchup I once used, but not the 2017 one.

ThomThom's picture

That image, are you referring to the warning about outdated signature? If you have set your Loading Policy to Unrestricted it have no effect on the usage of the extension - just ignore it.

If you have problem using it, then let me know. (Please elaborate on what isn't working, what menu items you are using, what CleanUp settings you are using etc.)

1- 2017 version 17.2.2554
2- mac OS Sierra version 10.12.4
3- I never install the TT_Lib (maybe thats is the problem) how I proceed after install?
4- no errors
5 - yes is listed
6 yes it is
7 is shows outdated signature still.. even after your intructions

THANKYOU SO MUCH,

Thanks ThomThom This is awesome! It made it so I could export .stl where as before I couldnt because I think it had some inverse faces or something like that. Thanks again!

Tom B's picture

Hi, it tells me the signature is 'outdated'???

ThomThom's picture

Yea, SU2017 changed the way signatures work. Unless you have set your extension loading policy to "Identified Only" it will have no effect.

I did this Identified Only" it will have no effect. but is shows blocked

Tom B's picture

it was working earlier i just was worried incase it meant eventually it would stop.

Love it though!

Giuliano N.'s picture

Hi, I get the following error when I open sketchup:

Error Loading File C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb
Error: #
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb:483:in `rescue in '
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb:12:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb:8:in `require'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb:8:in `'
C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in `require'
C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in `load'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:40:in `register_extension'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:40:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:15:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:14:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:13:in `'

Something when wrong trying to load C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb.
Please copy this message and forward it to the developer.

Giuliano N.'s picture

Hi, I get the following error when I open sketchup:

Error Loading File C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb
Error: #
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb:483:in `rescue in '
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb:12:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb:8:in `require'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup/bootstrap.rb:8:in `'
C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in `require'
C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in `load'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:40:in `register_extension'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:40:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:15:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:14:in `'
C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_cleanup.rb:13:in `'

Something when wrong trying to load C:/Users/gdarrigo/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/TT_CleanUp/vendor/error-handler/error_reporter.rb.
Please copy this message and forward it to the developer.

ThomThom's picture

Hi

I created an issue for this: https://bitbucket.org/thomthom/cleanup/issues/15/undefined-local-variabl...
Can you add a comment there with exactly what version of SU14 you have? The full version number from the About dialog?

Ricardo A.'s picture

Exelente

Hi! I've used this wonderful plugin successfully on previous versions of Sketchup but have problems installing it for Sketchup 2017 (all other plugins I usually use work and install fine.) Has anyone had a problem installing and using this plugin for Sketchup 2017?

ThomThom's picture

Hi Anna

Can you elaborate on that isn't working? (Do you get any error messages etc) What are the steps you are doing and what is happening?

(Btw, these types of questions are often easier to follow up in the forums. If you start a thread there and mention my username "@thomthom" then I'll get notified.)

-Thom

Hola Tom! A mi realmente me pasa lo mismo instalo el pluggin en sketch up pro 2016 y no se me activa el mismo! A pesar de activar la otra extension de tt lib 2! Porque podria ser esto?

I just tried Cleanup on my very large model. It had 8.7m edges and just over 4m faces. With Cleanup it only reduced by <5% to 8.5m edges and 3.99 faces. Is there a safe way to increase this?
Before I do that, it seems I have to do something to fix the following errors? Ignore Normals are already unchecked, but how do I scale up the geometry 10 or 100 times (or at all)?
My 100-story building may eventually reach 4-6GB. It is 200MB now.

10 errors occurred.

10 of these errors was face merging errors. This is typically due to small faces/edges.

Please undo and scale up the geometry 10 or 100 times and try CleanUp again.

You can also try to disable Ignore Normals.

you should use cleanup on not the whole model, but on parts of the model which have a lot of polygons. Say a couch or a tree. If you can select each part of the model and lower the size piece by piece, you can get nice results.

Artisan S.'s picture

Thom,

I know that this problem has come up before, but I was wondering if you have found a definitive solution. I have SketchupPro 17.1.174 (64b) installed, the latest TT_Lib, and have installed, uninstalled, and reinstalled CleanUp3 several times. My issue is that when I open the CleanUp window, the window is completely blank. No options at all. The only thing I can do is use Clean with Last Settings, and that always wipes out all of my individual edges. Please help! Thanks!

ThomThom's picture

Hi
Can you start a thread on the SketchUp forums, and tag me (mention my username "thomthom" using an @ in front; "@thomthom")

It's easier to follow up with questions like this in the forum as it's possible to share images and files there.

-Thom

Artisan S.'s picture

Changed the %SCRIPT% lines in window.html as follows:

%PATH%js/inputbox.js

%TITLE%

%PATH%js/inputbox.js

-->

%CONTENT%

Artisan S.'s picture

Ruby Console shows nothing... CleanUp3 Window shows:

file:///ARTISAN-SERVER/fileshare/UserFolders/dpennington/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/TT_Lib2/webdialog/js/inputbox.js file:///ARTISAN-SERVER/fileshare/UserFolders/dpennington/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/TT_Lib2/webdialog/js/inputbox.js

When I run it.

I am on a Windows 7 computer connected to a 2008r2 server using folder redirection and roaming profiles.

Artisan S.'s picture

Also tried replacing %SCRIPTS% with

Jo W.'s picture

This tool is the BOMB.

I've used ThomThom's plugins before, and this is EXQUISITE. Simple, stupid problems begin to popup with coplaner faces, and then my model is doomed -- or it USED TO BE! Now, I can select the area, merge the coplaner faces that Sketchup would magically insert, clean up the edges -- and I got back to having beautiful, solid polygons.

Are you... are you a wizard?

Cameron T's picture

I feel that this plugin isn't finished. There is something wrong with the purging process, because whenever I try to clean the model, it SketchUp doesn't respond, and for hours on end, too. Some models are easily purge-able, but there are some weird components/groups that don't seem to want to be purged, and then cause SketchUp to be "unresponsive". What can I do to keep this from happening, and what can I do to speed purging time up??

ThomThom's picture

Large models will take longer to process. And some options will make the process longer because it require more computation. The one option I do warn about (and it's seen in the tooltip of the option) is the Remove Duplicate Faces. Keep that unchecked until you know you have a problem with overlapping duplicate faces - because this one really slows things things.

Other than that - the more geometry the slower it will be.

Cameron T's picture

Before this plugin, I actually had to manually clean the models, and that was a pain in the @**, but now, cleaning a model has never been easier, and what was surprising was that the models that I already cleaned had hundreds of thousands of other entities that I had completely overlooked. Thanks!

seeley's picture

Hi ThomThom
I have high hopes for this plugin... as I often use models imported from other platforms with way too much info... I'm currently working on a model I inherited from a client with over 5 million entities!!! Doing anything in sketchup is crazy cumbersome because it's bogged. I'd love a way to "shell tool" it because there is tons of internal geometry I don't want... AND it is built mostly from 6 sided bricks that give a double thickness and tons of coplanar redundant faces when stacked together. Shell tool, per usual, seems to do nothing. I found you a couple of days ago, and tried it on a part of the model, and it did delete some of the internal geometry, though not all, and ran for a couple of hours even though it seemed to think it would take much longer. I'm now 36 hours in to using Cleanup3 on the entire model, and it says there are 12,000 hours left, and it is .3 percent through with duplicate face removal. I'm on a 12 core mac pro w 64gb memory and the stock vid card.

If I cancel... will it leave the deleted entities deleted, or go back to the state where I began? Thanks
Dave

seeley's picture

yes on duplicate faces.... thinking that might be a large percentage of my 5 million entities... but can't invest 12,000 hours in my work flow... ;-)
Not talking about force-quitting the process, but hitting the "cancel" button within the Cleanup3 interface... Does that put you back to square one, or keep any deletions to date?

Thanks
d

ThomThom's picture

Once CleanUp start it cannot be cancelled I'm afraid. The API have no facility to this.

The duplicate face feature doesn't check for faces overlapping across instances. Only within each group/instance - which should be rare occurrences as SU doesn't really allow duplicates like that.

seeley's picture

OK... I'll kill it and try without the faces box checked.
it was only only 37 hours of "virtual" work that will be lost... ;-)
I'll let you know if there is a significant reduction in file size with only "erase hidden geometries" checked. Essentially, I have a volume within which there is lots of geometry... Will Cleanup remove that geometry if the volume has no "holes?"

seeley's picture

So I force quit, and ran Cleanup3 to only erase hidden geometries... and it completed in 18 seconds... and didn't reduce my 365mb file at all, or delete the interior geometries I'd hoped it would. I must be misinterpreting what is meant by hidden geometries.

ThomThom's picture

Hidden Geometry is what is explicitly hidden by turning off the layer the geometry on, or using the Hide functionality. It's not in terms of what is visually seen from the camera's point of view.

ThomThom's picture

Ouch, 36 hours sounds much, even for 5M entities. Any chance you have duplicate faces checked in the options? (That is extremely slow - use only if you know you need it. For such a large one I'd omit it.)

If you kill SU to cancel what it's doing you will lose the changes its one.

Olá ThomThom.

Salvei a extensão em meu computador.
Em preferencias consegui instalar.
Mas, recebi uma mensagem, que diz: TT_Lib² não esta instalado, então o Sketchup sugere fazer o download de TT_lib² direto da warehouse, mas não consigo. Porque diz erro de autenticação.
Como posso resolver? Pode me ajudar, por favor?

Hello, ThomThom.

I saved the extension on my computer.
In preferences I was able to install.
But, I got a message that says: TT_Lib² is not installed, so Sketchup suggests downloading TT_lib² straight from the warehouse, but I can not. Because it says authentication error.
How can I solve? Can you help me please?

Hugs
Fernanda.

ThomThom's picture

"authentication error" would be an issue with Extension Warehouse. I don't know what causes that. I don't manage this website. I'd recommend contacting support to assist you in signing in to Extension Warehouse.

Hello ThomThom.

Okay I will try.

thanks

A hug.
Fer.

Jamie S's picture

I updated TT_Lib_2.10.6_19-09-2016.rbz to TT_Lib_2.10.8_24-11-2016.rbz and when restart of SU I get the following errors;

Error Loading File C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/TT_Lib2/core.rb
uninitialized constant TT::CExtensionManager::PLUGIN_ID
Error Loading File TT_Lib2.rb
uninitialized constant TT::CExtensionManager::PLUGIN_ID

Windows 10, Sketchup Pro 2013, please help.

ThomThom's picture

That's odd. That bug was introduced in 2.10.7. 2.10.8 was supposed to fix that.
Can you double check the version reported to be installed?
And you restarted after installing?

Jamie S's picture

Thom, yes I’ve restarted after install, have both performed install direct from extension warehouse and again from downloaded file using install extension in preferences. Also I was having bug splats when attempting to import a .obj with quad faced tool. Previously cleanup worked fine and I used it frequently.

Jamie S's picture

After twice trying the install of both latest TT_Lib_2.10.8_24-11-2016 and cleanup tt_cleanup-3.4.2, I just went back to previous versions of both (TT_Lib_2.10.6_19-09-2016 & tt_cleanup_v3.4.2 respectively) and now can clean SU files again. I was never able to import obj's with Quad faced tool and had always received a bugsplat when attempting to, so I'll leave that one alone. Thank you for the previous version of cleanup (tt_cleanup_v3.4.2), it works fine.

Windows 10, Sketchup Pro 2013.

ThomThom's picture

As for the QuadFace Tool issue, please report it here: https://bitbucket.org/thomthom/quadface-tools/issues?status=new&status=open