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

    [Plugin] Save Copy As Previous Version

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

      Jim

      Is there anyway to add the date, or a version #, such as, ??????_SU8_03_12_14 or ??????SU8_V_01?

      That would prevent writing over the file.

      Ken

      Fight like your the third monkey on Noah's Ark gangway.

      1 條回覆 最後回覆 回覆 引用 0
      • J 離線
        Jim
        最後由 編輯

        @unknownuser said:

        s there anyway to add the date, or a version #,

        Yes, I will make the format customizable.

        Hi

        1 條回覆 最後回覆 回覆 引用 0
        • S 離線
          sstuchfield
          最後由 編輯

          Hi Jim,

          Do you have an estimate of when you will be able to repost it?

          Cheers,
          Sandy

          1 條回覆 最後回覆 回覆 引用 0
          • J 離線
            Jim
            最後由 編輯

            Thanks for the reminder. With SU being a hobby for me and not something i do for a living, I tend to spend time on things that interest me at the moment. I will get this plugin updated this weekend.

            Hi

            1 條回覆 最後回覆 回覆 引用 0
            • S 離線
              sstuchfield
              最後由 編輯

              Awesome, Thanks

              1 條回覆 最後回覆 回覆 引用 0
              • J 離線
                Jim
                最後由 編輯

                Updated, see first post.

                Hi

                1 條回覆 最後回覆 回覆 引用 0
                • S 離線
                  stagelight
                  最後由 編輯

                  Great plugin !! Thank you.

                  1 條回覆 最後回覆 回覆 引用 0
                  • D 離線
                    dirtypr
                    最後由 編輯

                    This is wonderful!! thanks!

                    1 條回覆 最後回覆 回覆 引用 0
                    • R 離線
                      rv1974
                      最後由 編輯

                      Would it be possible to make the 'silent' version of this script:

                      1. no confirmation windows
                      2. no additions to the file name
                      3. background autosave as prev. version
                        ?
                        This script would help to solve the problem of crashing windows explorer (v.2015) and open skp files in other applications (Xnview renders skp thumbnails (up to v.2013) and 3ds Max\Lumion open only older skp versions).

                      Thanks.

                      1 條回覆 最後回覆 回覆 引用 0
                      • S 離線
                        stagelight
                        最後由 編輯

                        Maybe this is new for 2015? But this code, will save as version 7, no confirmation needed. Just run in the ruby console...
                        model = Sketchup.active_model
                        status = model.save("", Sketchup::Model::VERSION_7)

                        1 條回覆 最後回覆 回覆 引用 0
                        • thomthomT 離線
                          thomthom
                          最後由 編輯

                          @stagelight said:

                          Maybe this is new for 2015? But this code, will save as version 7, no confirmation needed. Just run in the ruby console...
                          model = Sketchup.active_model
                          status = model.save("", Sketchup::Model::VERSION_7)

                          That's new to SU2014.
                          http://www.sketchup.com/intl/en/developer/docs/ourdoc/model#save
                          Version.png

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • J 離線
                            Jim
                            最後由 編輯

                            @stagelight said:

                            Maybe this is new for 2015? But this code, will save as version 7, no confirmation needed. Just run in the ruby console...
                            model = Sketchup.active_model
                            status = model.save("", Sketchup::Model::VERSION_7)

                            Oh that's interesting. It only works if the model has already been saved. I may have made things more difficult than they are.

                            So what you want is to be able to choose a version to use as the default one time, then just use a shortcut or menu item to save the model?

                            Hi

                            1 條回覆 最後回覆 回覆 引用 0
                            • D 離線
                              driven
                              最後由 編輯

                              @jim said:

                              Oh that's interesting. It only works if the model has already been saved.

                              model = Sketchup.active_model
                              status = model.save((File.expand_path("~/Desktop/test_v7")), Sketchup;;Model;;VERSION_7)
                              

                              if you give it a valid path it works with unsaved models...

                              In my mac version I grab the incoming path from the header and spit that back out on save...

                              but to do so automatically as per the request, needs an Observer, and I loathe all of them...

                              john

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

                              1 條回覆 最後回覆 回覆 引用 0
                              • U 離線
                                unsuns
                                最後由 編輯

                                Hello Everyone !

                                Today, I finally decided to start using Sketchup 2016 instead of Sketchup 8, and I discovered this WONDERFUL plugin.

                                However, it's not working with SU 2016.

                                Thank you for updating it, we'll be really grateful !

                                Cheers !

                                1 條回覆 最後回覆 回覆 引用 0
                                • J 離線
                                  Jim
                                  最後由 編輯

                                  I'll take a look.

                                  Hi

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • J 離線
                                    Jim
                                    最後由 編輯

                                    @unsuns said:

                                    Hello Everyone !

                                    However, it's not working with SU 2016.

                                    It is working for me - what is not working for you?

                                    Hi

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • U 離線
                                      unsuns
                                      最後由 編輯

                                      @jim said:

                                      @unsuns said:

                                      Hello Everyone !

                                      However, it's not working with SU 2016.

                                      It is working for me - what is not working for you?

                                      When I use it, the plugin changes the file's version number back to 8.0.1 and I can open it correctly in Sketchup 8.

                                      However, I use Lumion, and he cannot read the file until I save it manually as version 8.

                                      Moreover, when I use the plugin, it seems to change only the version number, and not re-saving the file completely, which takes much more time when I test that manually on heavy files.

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • U 離線
                                        unsuns
                                        最後由 編輯

                                        Did you check the issue and found a solution for that problem ?

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • D 離線
                                          driven
                                          最後由 編輯

                                          I suspect your Lumion plugin needs you to re-save so it can 'tag' all your materials.
                                          if the plugin isn't in v16 it would not have done that for you...

                                          does Lumion have a v16 version?

                                          john

                                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • U 離線
                                            unsuns
                                            最後由 編輯

                                            @driven said:

                                            I suspect your Lumion plugin needs you to re-save so it can 'tag' all your materials.
                                            if the plugin isn't in v16 it would not have done that for you...

                                            does Lumion have a v16 version?

                                            john

                                            The latest Lumion version is 6.0, and shows the same issue. The SKP file must be saved as v8.
                                            When I save it from Sketchup 2016 manually, it works perfectly.
                                            However, I thought that this plugin would make me save some time, using a simple shortcut.

                                            I'd be really glad if this finally works ! 😄

                                            Edit : Lumion reads the sketchup file directly.

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

                                            Advertisement