sketchucation logo sketchucation
    • 登入
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Problem with SU

    已排程 已置頂 已鎖定 已移動 SketchUp Discussions
    sketchup
    48 貼文 13 Posters 6.5k 瀏覽 13 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • thomthomT 離線
      thomthom
      最後由 編輯

      @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 條回覆 最後回覆 回覆 引用 0
      • TIGT 線上
        TIG Moderator
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • thomthomT 離線
          thomthom
          最後由 編輯

          Extensions bogg down as well?

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

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 線上
            TIG Moderator
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • cottyC 離線
              cotty
              最後由 編輯

              @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 條回覆 最後回覆 回覆 引用 0
              • Dan RathbunD 離線
                Dan Rathbun
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 0
                • G 離線
                  gerrrg
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • G 離線
                    g_wilson
                    最後由 編輯

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • 1
                    • 2
                    • 3
                    • 3 / 3
                    • 第一個貼文
                      最後的貼文
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement