[Plugin] CleanUp
-
Depends on the errors. Does the model have lots of small faces/edges?
-
Hi Thom, thanks for this excellent tool.
I was hoping you could help me get it working in Linux under wine. I saw the discussion many pages back about wine but that was a different error. I am using SketchUp 8 and the latest TT_Lib 2.9.8 and Cleanup 3.2.1
After installing TT_Lib and restarting I am getting a dialog saying
Error Loading File C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb uninitialized constant TT;;GUI;;ToolWindowError Loading File TT_Lib2.rb uninitialized constant TT;;GUI;;ToolWindowError Loading File C;/Program Files/Google/Google SketchUp 8/Plugins/tt_cleanup/core.rb uninitialized constant TT;;GUI;;ToolWindowError Loading File tt_cleanup.rb uninitialized constant TT;;GUI;;ToolWindow
Meanwhile in the terminal I see
C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2.rb;19; warning; already initialized constant PLUGIN_ID C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2.rb;20; warning; already initialized constant PLUGIN_NAME C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2.rb;21; warning; already initialized constant PLUGIN_VERSION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;27; warning; already initialized constant BB_LEFT_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;28; warning; already initialized constant BB_RIGHT_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;29; warning; already initialized constant BB_LEFT_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;30; warning; already initialized constant BB_RIGHT_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;31; warning; already initialized constant BB_LEFT_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;32; warning; already initialized constant BB_RIGHT_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;33; warning; already initialized constant BB_LEFT_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;34; warning; already initialized constant BB_RIGHT_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;36; warning; already initialized constant BB_CENTER_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;37; warning; already initialized constant BB_CENTER_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;38; warning; already initialized constant BB_CENTER_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;39; warning; already initialized constant BB_CENTER_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;41; warning; already initialized constant BB_LEFT_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;42; warning; already initialized constant BB_LEFT_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;43; warning; already initialized constant BB_RIGHT_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;44; warning; already initialized constant BB_RIGHT_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;46; warning; already initialized constant BB_LEFT_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;47; warning; already initialized constant BB_RIGHT_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;48; warning; already initialized constant BB_LEFT_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;49; warning; already initialized constant BB_RIGHT_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;51; warning; already initialized constant BB_LEFT_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;52; warning; already initialized constant BB_RIGHT_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;53; warning; already initialized constant BB_CENTER_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;54; warning; already initialized constant BB_CENTER_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;55; warning; already initialized constant BB_CENTER_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;56; warning; already initialized constant BB_CENTER_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;58; warning; already initialized constant BB_CENTER_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;59; warning; already initialized constant BB_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;64; warning; already initialized constant MB_ICONHAND C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;65; warning; already initialized constant MB_ICONSTOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;66; warning; already initialized constant MB_ICONERROR C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;67; warning; already initialized constant MB_ICONQUESTION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;68; warning; already initialized constant MB_ICONEXCLAMATION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;69; warning; already initialized constant MB_ICONWARNING C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;70; warning; already initialized constant MB_ICONASTERISK C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;71; warning; already initialized constant MB_ICONINFORMATION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;72; warning; already initialized constant MB_ICON_NONE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;74; warning; already initialized constant MB_DEFBUTTON1 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;75; warning; already initialized constant MB_DEFBUTTON2 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;76; warning; already initialized constant MB_DEFBUTTON3 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;77; warning; already initialized constant MB_DEFBUTTON4 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;82; warning; already initialized constant MESH_SHARP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;83; warning; already initialized constant MESH_SOFT C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;84; warning; already initialized constant MESH_SMOOTH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;85; warning; already initialized constant MESH_SOFT_SMOOTH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;90; warning; already initialized constant POINT_OPEN_SQUARE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;91; warning; already initialized constant POINT_FILLED_SQUARE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;92; warning; already initialized constant POINT_CROSS C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;93; warning; already initialized constant POINT_X C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;94; warning; already initialized constant POINT_STAR C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;95; warning; already initialized constant POINT_OPEN_TRIANGLE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;96; warning; already initialized constant POINT_FILLED_TRIANGLE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;114; warning; already initialized constant VERSION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;118; warning; already initialized constant PREF_KEY C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;121; warning; already initialized constant PATH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;122; warning; already initialized constant PATH_LIBS C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;125; warning; already initialized constant PATH_LIBS_CEXT C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/sketchup.rb;21; warning; already initialized constant COLOR_GL_POLYGON C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/sketchup.rb;25; warning; already initialized constant COLOR_ALPHA C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/sketchup.rb;29; warning; already initialized constant RAYTEST_WYSIWYG C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/system.rb;16; warning; already initialized constant PLATFORM_IS_OSX C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/system.rb;19; warning; already initialized constant PLATFORM_IS_WINDOWS C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/system.rb;22; warning; already initialized constant TEMP_PATH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;27; warning; already initialized constant BB_LEFT_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;28; warning; already initialized constant BB_RIGHT_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;29; warning; already initialized constant BB_LEFT_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;30; warning; already initialized constant BB_RIGHT_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;31; warning; already initialized constant BB_LEFT_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;32; warning; already initialized constant BB_RIGHT_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;33; warning; already initialized constant BB_LEFT_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;34; warning; already initialized constant BB_RIGHT_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;36; warning; already initialized constant BB_CENTER_FRONT_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;37; warning; already initialized constant BB_CENTER_BACK_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;38; warning; already initialized constant BB_CENTER_FRONT_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;39; warning; already initialized constant BB_CENTER_BACK_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;41; warning; already initialized constant BB_LEFT_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;42; warning; already initialized constant BB_LEFT_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;43; warning; already initialized constant BB_RIGHT_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;44; warning; already initialized constant BB_RIGHT_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;46; warning; already initialized constant BB_LEFT_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;47; warning; already initialized constant BB_RIGHT_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;48; warning; already initialized constant BB_LEFT_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;49; warning; already initialized constant BB_RIGHT_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;51; warning; already initialized constant BB_LEFT_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;52; warning; already initialized constant BB_RIGHT_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;53; warning; already initialized constant BB_CENTER_FRONT_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;54; warning; already initialized constant BB_CENTER_BACK_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;55; warning; already initialized constant BB_CENTER_CENTER_TOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;56; warning; already initialized constant BB_CENTER_CENTER_BOTTOM C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;58; warning; already initialized constant BB_CENTER_CENTER_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;59; warning; already initialized constant BB_CENTER C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;64; warning; already initialized constant MB_ICONHAND C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;65; warning; already initialized constant MB_ICONSTOP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;66; warning; already initialized constant MB_ICONERROR C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;67; warning; already initialized constant MB_ICONQUESTION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;68; warning; already initialized constant MB_ICONEXCLAMATION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;69; warning; already initialized constant MB_ICONWARNING C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;70; warning; already initialized constant MB_ICONASTERISK C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;71; warning; already initialized constant MB_ICONINFORMATION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;72; warning; already initialized constant MB_ICON_NONE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;74; warning; already initialized constant MB_DEFBUTTON1 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;75; warning; already initialized constant MB_DEFBUTTON2 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;76; warning; already initialized constant MB_DEFBUTTON3 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;77; warning; already initialized constant MB_DEFBUTTON4 C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;82; warning; already initialized constant MESH_SHARP C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;83; warning; already initialized constant MESH_SOFT C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;84; warning; already initialized constant MESH_SMOOTH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;85; warning; already initialized constant MESH_SOFT_SMOOTH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;90; warning; already initialized constant POINT_OPEN_SQUARE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;91; warning; already initialized constant POINT_FILLED_SQUARE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;92; warning; already initialized constant POINT_CROSS C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;93; warning; already initialized constant POINT_X C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;94; warning; already initialized constant POINT_STAR C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;95; warning; already initialized constant POINT_OPEN_TRIANGLE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;96; warning; already initialized constant POINT_FILLED_TRIANGLE C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;114; warning; already initialized constant VERSION C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;118; warning; already initialized constant PREF_KEY C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;121; warning; already initialized constant PATH C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;122; warning; already initialized constant PATH_LIBS C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb;125; warning; already initialized constant PATH_LIBS_CEXT
I am expecting a Cleanup item in the Plugins menu but do not see it. Let me know if I can help debug! Thanks again.
-
What version of Linux and Wine are you using?
How did you install the extensions?
-
Thanks for the quick reply! Linux is Debian stable (wheezy) with wine from the repository, version 1.4.1.
Extensions installed via SketchUp GUI.
-
@unknownuser said:
it would be cool if we could access the delete coplanar feature with respect to the materials via a shortcut would save me a thousand clicks...
If you set up the dialog to merge only by material you can use the Clean With Last Settings by shortcut. It's a workaround, but it currently works.
-
By the way, I tried installing SketchUp 2013 and got the same output in console and dialog. Let me know if I can help debug. Thanks!
-
Can you install this RBZ and go Plugins > SketchUp Diagnostics Tools > Collect Data ?
Now, it should put a txt file on your Desktop... though I'm not sure how this works when you are running Linux+Wine... :s
-
-
Given that file I don't see CleanUp as being installed - only TT_Lib2...
-
Whoops, I removed Cleanup to check whether I would get errors with just TT_Lib. And I did.
I reinstalled CleanUp and attached the diagnostic. Thanks for your patience.
-
Ah, right!
And the error message you posted here: http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=22920%26amp;view=unread%26amp;sid=3c5780a432a36ee6c62eb305f16f5390#p516006
Was that with or without CleanUp installed? -
With. Without I get just the first half:
Error Loading File C;/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/core.rb uninitialized constant TT;;GUI;;ToolWindowError Loading File TT_Lib2.rb uninitialized constant TT;;GUI;;ToolWindow
-
Are you able to run SU2014? It should provide a more detailed error to pin-point where it fails.
I'm not a linux user and I only ever tried Ubuntu briefly in 2008... :s
-
Unfortunately SketchUp 2014 doesn't work at all. I've attached diagnostic output from SketchUp 2013, in case that helps...
-
I'm sorry how much back and forth this takes, but without being able to reproduce I'm a bit blind here.
SketchUp prior to SU2014 has flawed error messages that makes it hard to debug. Can I ask you to open the Ruby Console (SketchUp's console, not Linux) and see what you get from this command:
load "TT_Lib2/core.rb"
-
What? "load_uninstalled.txt" was a result of running
load "TT_Lib2/core.rb
when TT_Lib was uninstalled? That makes no sense because it's loading files... if you had unisntalled TT_Lib2 thenload "TT_Lib2/core.rb
should have returned an error about file not found.
I'm not able to make any sense out of this...Did you restart SketchUp after uninstalling?
-
Sorry, by uninstall I meant unchecking TT_Lib2 and Cleanup in the Extensions dialog and restarting SketchUp.
The TT_Lib2 files are still in the Plugins directory. Maybe it makes no sense to run "TT_Lib2/core.rb" in this state? I thought it might be akin to how SketchUp loads the extension at startup?
-
Unchecking TT_Lib2 in the Extension Manager will have no effect.
This error is very strange.
Can you try a few other mutations?
` load "TT_Lib2/sketchup.rb"
load "TT_Lib2/system.rb"
load "TT_Lib2/entities.rb"`
-
-
@tt_su said:
I'm sorry how much back and forth this takes, but without being able to reproduce I'm a bit blind here.
No worries! I really appreciate your patience and am happy to send you any debug info.
@tt_su said:
SketchUp prior to SU2014 has flawed error messages that makes it hard to debug. Can I ask you to open the Ruby Console (SketchUp's console, not Linux) and see what you get from this command:
load "TT_Lib2/core.rb"
I ran this with both TT_Lib2 installed, and not. I think the latter has more information about the error...
Advertisement