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
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • U 離線
      unsuns
      最後由 編輯

      I did a few more tests and I figured out what the problem is :

      I used to try to overwrite the active file from v2016 to save it as v8 through the plugin-> Same name (Format : %model).

      However, when I added some other character (Format: %model_V8), meaning that it saves as another file, this works perfectly, and Lumion reads the file flawlessly.

      So, the real issue is : Can we FORCE the plugin to overwrite the current and active SKP v16 file in order to make it v8 ?

      Thank you.

      EDIT : Indeed, I just had to change the "Sketchup.active_model.save_copy" to "Sketchup.active_model.save". Now it works PERFECTLY !
      PROBLEM SOLVED ! THANKSSS ! 😄

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

        I just posted this. Maybe this will useful..

        http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=63606

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

          Jim may I humbly request a sub-version of your 'Save Copy As Previous Version' that would save only selectedin v8 format and would preserve coordinates.
          Desirabaly it should save from inside hierarchy,
          save silently (no pop-ups)to the same parent directory, and add some kind of suffix '_v8' in the file name.
          Thanks in advance.

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

            Hi rv I'll see what I can do but it likely won't happen until this weekend.

            Hi

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

              @rv1974 said:

              Jim may I humbly request a sub-version of your 'Save Copy As Previous Version' that would save only selectedin v8 format and would preserve coordinates.
              Desirabaly it should save from inside hierarchy,
              save silently (no pop-ups)to the same parent directory, and add some kind of suffix '_v8' in the file name.
              Thanks in advance.

              I am not sure I understand what you need. We have also exchanged some private messages which have only confused the issue for me. Can you explain in more detail what you would like to do? What problem needs solved, or what work-flow could be more efficient?

              Hi

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

                Please see attached scrinshot+ skp files.
                In file 1 I select all instances of tree and red curtain components and (hopefully) your new script would create (silently, in the same folder, origin preserved) 1_say_jim_v.8 skp file containing all of them.
                Thanks.


                1.JPG


                jim.zip

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

                  Would it make sense to be able to right-click a single instance of a component and create the _v8 file?

                  Hi

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

                    Would be completely OK.

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

                      What I have done thus far is this:

                      Right-click one component instance from anywhere in the model hierarchy, then select "Save all Instances"

                      The plugin saves the component to disc in the same folder as the original model as a .skp file. The plugin goes through the model and writes the positions of each of the instances in the model to a text file with the same name as the component i the same folder.

                      Now you have the option to use the "Import Instances" in the Extensions menu. You can import to the same model, or to a new model. All instances are imported to the same location as in the original file, but they are all at the Model context. You can then manually save imported components file as a version 8 file.

                      I am still working out how to best create the version 8 file containing only the selected components from the original model. I hope this helps for now. I plan on continuing work as time permits.


                      jf_save_instances.rb

                      Hi

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

                        Awesome! I had no chance to check it out today, gonna try it tomorrow
                        Many thanks in advance!

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

                          Tried it right now and I happy to confirm this is awesome tool ☀
                          I highly recommend to all good people of Sketchucation to adopt it their arsenal.

                          Briefly it serves to grab the instances of entourage randomly delete\diversify them
                          just with a couple of clicks.
                          Jim many thanks once again.
                          P.S. Should we expect v8?

                          P.P.S. It appears there's a free bonus- the script 'fixes' the bug of 3ds Max that in bizarre way flips the instances originally mirrored in SU. So when you insert v8 skp file
                          into the Max all items look OK.

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

                            Jim don't forget to put it into PluginStore as separate tool

                            1 條回覆 最後回覆 回覆 引用 0
                            • jujuJ 離線
                              juju
                              最後由 編輯

                              Jim, correct me if I'm wrong, but a little tweaking this could very well work as a proper proxy plugin?

                              All you need is to provide the component instances of high poly and low poly and have it swapped out using the script?

                              The location for the saving of the instances might need customization depending on whether or not the component instances are unique to the model or library items.

                              An interface (like layerspanel or outliner perhaps) for easier component management might also be useful if it develops into a commercial plugin.

                              Save the Earth, it's the only planet with chocolate.

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

                                Or, it could turn to some king of Skp Xref Manager.

                                1 條回覆 最後回覆 回覆 引用 0
                                • jujuJ 離線
                                  juju
                                  最後由 編輯

                                  @rv1974 said:

                                  Or, it could turn to some king of Skp Xref Manager.

                                  TIG already did a plugin for XREF, it works great but the interface needs scrolling bars (which he isn't keen to implement due to time/coding implications)

                                  Save the Earth, it's the only planet with chocolate.

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

                                    Never could make it (the TIG's one) work for me. Just gave up

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • P 離線
                                      pcucka
                                      最後由 編輯

                                      Hi there!
                                      For some reason I cannot seem to install this plugin on SU 2015.
                                      Thoughts?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • sdmitchS 離線
                                        sdmitch
                                        最後由 編輯

                                        @pcucka said:

                                        Hi there!
                                        For some reason I cannot seem to install this plugin on SU 2015.
                                        Thoughts?

                                        Since this a '.rb' file, it can not be installed as an extension.

                                        option 1 is to simply copy it to the Plugins folder and restart Sketchup. You should find '[jf]Save Copy As ...' under Files.

                                        option 2 is to Zip the .rb file and change the .zip extension to .rbz. This file can be installed as an extension.

                                        I was able to load and use this plugin in SU2015.

                                        Nothing is worthless, it can always be used as a bad example.

                                        http://sdmitch.blogspot.com/

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • bigstickB 離線
                                          bigstick
                                          最後由 編輯

                                          This is a really useful plugin - thanks!

                                          One small request which many people might find useful - would it be possible to have a right-click menu to save an individual component as a previous version?

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

                                            TIG, what in save-copy-as-2.0-jf.rb should be changed in order to save the file in older version (2015) withoutaltering its name? Ideally, pop-up window with ' the File file with the same name exists, do you want to replace it?' should be suppressed as well. In short, regular Save command (but to v2015).
                                            Thanks

                                            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