• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Problem with SU

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
48 Posts 13 Posters 6.5k Views 13 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    thomthom
    last edited by 9 Aug 2012, 14:12

    @cotty said:

    I had to change the content of the batch-file to (Windows 7-64):
    [code]"c:\Windows\System32\reg.exe" query "HKEY_CURRENT_USER\Software\Google\SketchUp8" /f "ToolbarsUser" >> reg_keys.txt

    It was made on Windows 7 64bit...
    It's using relative path - I see you used a full path. Seems like there's something odd about your PATH environment variables...

    @cotty said:

    (I found 4539 entries, who has more 😎 ? )

    I've had double that... After a session of longer debugging a toolbar problem. πŸ˜’

    Thomas Thomassen β€” SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 9 Aug 2012, 14:19

      Mine last cleared out at over ~1800 toolbar entries - and it had been crawling !
      After a lot of debugging of scripts/toolbars/extensions etc it does grow alarmingly...

      You must have been waiting forever for it to startup !

      I have a cmd that removes all toolbar guff and extensions too.
      It reduces startup time by a factor of 4 or 5 after it's run and I reinstall the extensions/toolbars I need !!

      TIG

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 9 Aug 2012, 14:26

        Extensions bogg down as well?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 9 Aug 2012, 15:47

          I think if you keep adding/subtracting/activating/deactivating extensions during tests legacy entries can build up.
          Seems to slow me down when developing tools using them - if it crashes on a faulty load I think a new one gets added... The extension's name is determined by the loader .rb and if you change the text in that, then the older one can be left behind ?
          Also if you physically move an extension or rename it .rb! then its extension data is left in the registry clogging things up...
          Just seems easier to clean them out now an again, like the toolbars.

          TIG

          1 Reply Last reply Reply Quote 0
          • C Offline
            cotty
            last edited by 9 Aug 2012, 16:36

            @thomthom said:

            It was made on Windows 7 64bit...
            It's using relative path - I see you used a full path. Seems like there's something odd about your PATH environment variables...

            The neccessary change was the "/f" instead of the "| find" which causes an error for me.

            @thomthom said:

            I've had double that... After a session of longer debugging a toolbar problem. πŸ˜’

            I made it without a single line of debugging πŸ˜‰

            my SketchUp gallery

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dan Rathbun
              last edited by 9 Feb 2013, 04:00

              I updated the command file a bit:

              (1) saves current WD and switches to the User Home dir.
              (2) first deletes an old file if it exists (because the REG QUERY appends to the file.)
              (3) Echos the number of lines containing keys to be deleted.
              (4) Accepts a "view" argument that will open the generated key file in the system's default text application, at the end of processing.
              (5) Switches back to the previous directory.

              @echo off
              
              set olddir= %CD%
              cd %USERPROFILE%
              
              if exist su_reg_keys.txt del su_reg_keys.txt
              
              reg query "HKCU\Software\Google\SketchUp8" | find "ToolbarsUser" >> su_reg_keys.txt
              
              echo .
              echo SketchUp Toolbar Registry entries to be deleted;
              find /C /I "HKEY" su_reg_keys.txt
              echo .
              
              for /f %%k in (su_reg_keys.txt) do (
                  reg delete %%k /f
              )
              
              REM   Open file in default text application
              REM   if "view" param is passed;
              if %1.==view. su_reg_keys.txt
              if %1.==VIEW. su_reg_keys.txt
              
              cd %olddir%
              set olddir=
              
              
              

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • G Offline
                gerrrg
                last edited by 13 Feb 2013, 02:08

                Haven't yet posted anything until now...thanks very much thomthom, for this excellent solution! Worked perfectly for me, on a problem that has been plaguing me for just over a month.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  g_wilson
                  last edited by 3 Mar 2014, 21:46

                  Thanks Thom - batch file worked like a dream - startup time greatly reduced.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 3 / 3
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement