sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

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

      Does anybody know of a ruby that will mine down into all groups / components and then Unhide ALL - (especially edges) ???
      ...
      See attached file - a VERY small sample from a huge file.
      ...
      As you can see, all the edges are hidden.
      ...
      All geometry is inside groups / components - some groups / components are nested.
      (although not in this small sample).
      ...
      What I would like to do is Unhide ALL edges - without having to edit each group / component manually one by one.
      ...
      Any help much appreciated
      Regards
      Howard L'


      unhide_edges.skp

      1 條回覆 最後回覆 回覆 引用 0
      • T 離線
        tomasz
        最後由 編輯

        Hello Howard,
        I am glad I am the first who has come with rescue (there are plenty of experienced Ruby masters over here 😄 ).
        Here is my small script. I have tested it and it works fine. It un-hides all drawing elements (not only edges but also faces, groups and components).

        Cheers
        Tomasz

        [mod=:3o6q02wn]Please get the latest version from the PluginStore[/mod:3o6q02wn]http://sketchucation.com/pluginstore?pln=unhide_all


        Un-hides all model entities...
        Superseded - get latest version from the PluginStore...

        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

        1 條回覆 最後回覆 回覆 引用 0
        • H 離線
          Howard leslie
          最後由 編輯

          Tomasz,
          Thank you so much for producing this script.
          For the task I am currently working on, it works really well.
          ...
          May I suggest a refinement to make this script much more useful (V 1.1) ?

          If a user has some geometry selected eg just a few groups and components - then the script will only "unhide all" from the users selection. (ie "unhides all" from the groups / components selected).
          Otherwise, if no selection is made (default mode) - then the script "unhides all" from the whole model (as now).
          ...
          Thanks once again for producing this wonderful script
          Regards
          Howard Leslie

          1 條回覆 最後回覆 回覆 引用 0
          • GaieusG 離線
            Gaieus
            最後由 編輯

            I'm sure Tomasz could do that - the kerky exporter works the same way if geometry is selected... 😒

            Gai...

            1 條回覆 最後回覆 回覆 引用 0
            • tbdT 離線
              tbd
              最後由 編輯

              here ya go unhide from groups/components on selection or all if no selection


              unhide from groups/components on selection or all

              SketchUp Ruby Consultant | Podium 1.x developer
              http://plugins.ro

              1 條回覆 最後回覆 回覆 引用 0
              • T 離線
                tomasz
                最後由 編輯

                Thanks TBD,
                'Case' looks much nicer 😄

                Tomasz

                Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                1 條回覆 最後回覆 回覆 引用 0
                • JClementsJ 離線
                  JClements
                  最後由 編輯

                  Try using the last posted script on this file.


                  UnHide test.skp

                  John | Illustrator | Beaverton, Oregon

                  1 條回覆 最後回覆 回覆 引用 0
                  • H 離線
                    Howard leslie
                    最後由 編輯

                    Tomasz / TBD,
                    I've noticed some strange results with the last script that was posted (TBD)
                    Or maybe its just my misunderstanding of how GROUPS work ???
                    ...
                    See attached file

                    All Geometry are Groups - NO Components.
                    See what happens when 1 group is copied several times eg the blue cube.
                    When selected and the script is run - ALL instances of that group are edited. (edges are unhidden)
                    I might expect this to happen with Components but not Groups.

                    Is it possible to get the script to run on selected geometry only ???
                    ...
                    Regards
                    Howard L'


                    UnHide Test 2.skp

                    1 條回覆 最後回覆 回覆 引用 0
                    • A 離線
                      azuby
                      最後由 編輯

                      I've written an extension, unfortunately my web provider had a problem and my website has old content 😞 (I'll fix this).

                      azuby


                      HideEdges - Hides/Unhides edges of selected elements

                      *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                      Bad English? PM me, correct me. :smile:**

                      1 條回覆 最後回覆 回覆 引用 0
                      • tbdT 離線
                        tbd
                        最後由 編輯

                        azuby: unfortunately it suffers from the same problem - somehow duplicated groups have the same entities as in a component

                        SketchUp Ruby Consultant | Podium 1.x developer
                        http://plugins.ro

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

                          I wrote this 'group_miner' script some time ago. It mines down through into any groups and makes sure that all groups are unique... Put it into your Plugins folder and it auto-runs at start up to ensure that the model is initially 'fixed'. You can invoke it in any script (remember to 'require' it if needed BUT it's a short bit of code to copy/paste inside any script anyway)... OR just type 'group_miner(Sketchup.active_model.entities)' to repeat the process 'live'...


                          ~group_glitch_fixer.rb

                          TIG

                          1 條回覆 最後回覆 回覆 引用 0
                          • tbdT 離線
                            tbd
                            最後由 編輯

                            and here is the fix (thanks TIG) - works with both .skp from JClements & Howard L' (for the cube in JClements .skp you need to triple click to select all connected as it is not a group)


                            unhide_all.rb

                            SketchUp Ruby Consultant | Podium 1.x developer
                            http://plugins.ro

                            1 條回覆 最後回覆 回覆 引用 0
                            • JClementsJ 離線
                              JClements
                              最後由 編輯

                              Thank you TBD and TIG.

                              This will be useful.

                              John | Illustrator | Beaverton, Oregon

                              1 條回覆 最後回覆 回覆 引用 0
                              • H 離線
                                Howard leslie
                                最後由 編輯

                                Tomasz / TBD / TIG,
                                Thanks to all of you for working on this script.
                                Now works really well.
                                Regards
                                Howard L'

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

                                  Is the fix posted in this thread still needed for the latest SketchUp versions?

                                  Hi

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

                                    @jim said:

                                    Is the fix posted in this thread still needed for the latest SketchUp versions?

                                    i just did the test, and yes it is still needed

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

                                      @jim said:

                                      Is the fix posted in this thread still needed for the latest SketchUp versions?

                                      Currently the failure to ensure that copies of a group become single instances of a definition is not fixed - group.make_unique still reports as being deprecated, but it is needed - it is possible to have several copies made of a group definition where they act like component instances, and so changing one instance changes the lot - it's what Components are supposed to do BUT that's NOT what groups are supposed to do... When you copy a group it should automatically become a single instance of its definition - there should never be the equivalent of group.definition.instances[1]. It doesn't currently work properly - either manually or scripted... 😒

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • H 離線
                                        hygicell
                                        最後由 編輯

                                        yesterday and today sketchup 2013 completely froze when using the unhide plugin (which I have used many times before witout problems)
                                        the only difference I can see is that I twice had the outliner and components windows open, which I didn't before
                                        both these windows were on a second monitor which I didn't have before either
                                        anybody else had this experience?
                                        Frank

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • mitcorbM 離線
                                          mitcorb
                                          最後由 編輯

                                          I have seen it discussed before, quite a while back, that Outliner especially, and Component windows can cause issues with your work when they are fully open. If you click on the top bar of each, they will "roll up". This, I have read, will reduce the problem.
                                          Hope this helps.

                                          I take the slow, deliberate approach in my aimless wandering.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • M 離線
                                            michaelhund
                                            最後由 編輯

                                            Alas, I too have found this plugin freezes in Sketchup 2013. I tried closing all dialogs, particularly the outliner, scenes and layers, and no luck. Pity.

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

                                            Advertisement