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

    [Plugin] View Parts (1.2) — Sept 13 2011

    Scheduled Pinned Locked Moved Plugins
    35 Posts 24 Posters 38.2k Views 24 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.
    • S Offline
      studeag
      last edited by

      Extremely usefull,

      Thank you!

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        This is a very good idea. 😄

        I have a few points...

        Please remember to parenthesize you arguments, for future Ruby compatibility - e.g. it's best like
        model.pages.add("Initial State")
        and NOT
        model.pages.add "Initial State"
        I know the API is full of 'wrong' examples and they do work... BUT with changes to the way Ruby works across versions, then if they aren't inside () you will get issues...

        You should protect you code inside a module - someone else might have also defined hideAll too in their 'unwrapped' code... which might mess up you [or them] !
        So let's call it
        ` module CMD

        ALL code goes here

        endThen recast your three methods with a leading self.like this def **self.**hideAll()
        ...etc, Also ensure that any calls of those methods then appear as **self.**hideAll()etc The menu section also needs to use ...{**self.**viewParts()}if it's within the module, but if it's outside of the module then it becomes ...{**CMD.**viewParts()}`

        Also you could replace the
        if file_loaded?("viewparts.rb")
        etc with
        if file_loaded?(File.basename(__FILE__))
        as __FILE__ returns the path to the script itself and doesn't rely on the file keeping a certain name.

        Personally I'd also put this Tool under the 'View' menu rather than in 'Plugins'... but that's me...

        Please don't take my comments as criticisms of a great idea, that's well executed - it's just that these minor tweaks would make it more 'robust'... 🤓

        TIG

        1 Reply Last reply Reply Quote 0
        • MALAISEM Offline
          MALAISE
          last edited by

          Great tool for complex mechanisms

          Thanks a lot

          La Connaissance n'a de valeur que partagée

          1 Reply Last reply Reply Quote 0
          • fastech370F Offline
            fastech370
            last edited by

            Awesome Plugin. This saves a lot of time!!!!!

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              hi,

              does anyone have this working on a mac... [EDIT-the examples on a mac!!!]

              I tried both standard and a version using TIG's mods, and although both create scenes, everything is hidden.

              the only way to see any content is to use 'edit>>unhide>>all' but then 'ALL' are unhidden in 'ALL' scenes.

              I tried using the hide 'other' feature to see the individual elements, but this gets zeroed when I switch pages[scenes].

              does the model need to have separate layers for each group/component?

              any ideas?
              john
              lovely model from 3d warehouse

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

              1 Reply Last reply Reply Quote 0
              • Jean-FrancoJ Offline
                Jean-Franco
                last edited by

                Hi,

                @driven said:

                I tried both standard and a version using TIG's mods, and although both create scenes, everything is hidden.

                I've the same situation under Windows XP 3.
                If I select components within a group and launch Viewparts, it creates all the needed scenes but all is hidden. And no way to unhide anything.

                Have a look at the attached file.

                Driven, If you don't mind, I'd like to have your updated script with TIG's modifications to do a test.
                I'm sorry but I'm really not a Ruby scripter.
                Thanks.

                cerificateur-scenes.skp

                Jean-Franco

                1 Reply Last reply Reply Quote 0
                • yellow perilY Offline
                  yellow peril
                  last edited by

                  Hi has anyone any idea why this script seams to lock up my files while using the arc tool, I have unstalled this excellent script and found that all is working fine, maybe its a mac issue, some help would be much appreciated........

                  Thank You

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rjhorky
                    last edited by

                    for the life of me I cannot figure out why I cannot get this to work. I click on the link, save to the plugins folder within SU8. It does not show up anywhere but I can see it in the folder. Any ideas?

                    1 Reply Last reply Reply Quote 0
                    • Dave RD Offline
                      Dave R
                      last edited by

                      Did you restart sketchUp after installing the file in the Plugins folder? Did it install with the .rb extension?

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        ksjoern
                        last edited by

                        The Plugin does not work with a Mac. I put it in the correct folder (Library/Application Support/Google SketchUp 8/SketchUp/plugins).
                        The required 'sketchup.rb' is included in the TT_Lib2. But the plug-in window shows no entry "Exploded View"
                        Any idea what I could change?
                        Could it be a problem not working with an english system interface?


                        wiewparts.jpg

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @ksjoern said:

                          The required 'sketchup.rb' is included in the TT_Lib2.

                          No - this plugin has no dependance on TT_Lib2.

                          The required sketchup.rb is located in SketchUp's Tools folder. (Where it should stay.)

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

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            @driven said:

                            You need to have at least 1 group or component in your model,

                            you will then get a 'Parts>> views ' entry in the Plugin Menu,

                            Menus in the top level menus (File,Edit,View,Plugins,etc...) does not hide or show based on selection. They are fixed. Only context menus are dynamic like that.

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

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by

                              hi,

                              You need to have at least 1 group or component in your model,

                              you should have a 'Parts>> views ' entry in the Plugin Menu, [Edited following TT's comment..]

                              click on that entry, choose your options and it will make the scenes.

                              click on scene tabs to view.

                              group a square, then try it out.

                              if you open a drawing with lots of groups, it will make lots of scenes.

                              john

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

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                driven
                                last edited by

                                @thomthom said:

                                Menus in the top level menus (File,Edit,View,Plugins,etc...) does not hide or show based on selection. They are fixed. Only context menus are dynamic like that.

                                edited my post, your are correct, I loaded it from console to test, so it wasn't there before , but was after... dohh

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

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  ksjoern
                                  last edited by

                                  Great, now it works on my mac. - I've probably always have the downloaded previous (1.1) version.


                                  Knips 2011-09-16 um 08.35.41.png

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dannyver
                                    last edited by

                                    @jean-franco said:

                                    Hi,

                                    @driven said:

                                    I tried both standard and a version using TIG's mods, and although both create scenes, everything is hidden.

                                    I've the same situation under Windows XP 3.
                                    If I select components within a group and launch Viewparts, it creates all the needed scenes but all is hidden. And no way to unhide anything.

                                    Have a look at the attached file.

                                    Driven, If you don't mind, I'd like to have your updated script with TIG's modifications to do a test.
                                    I'm sorry but I'm really not a Ruby scripter.
                                    Thanks.

                                    [attachment=0:1k9cpp7m]<!-- ia0 -->cerificateur-scenes.skp<!-- ia0 -->[/attachment:1k9cpp7m]

                                    i have the same problem is ther any one ho has a answer or solution for this problem already ❓ ❓

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dannyver
                                      last edited by

                                      @dannyver said:

                                      @jean-franco said:

                                      Hi,

                                      @driven said:

                                      I tried both standard and a version using TIG's mods, and although both create scenes, everything is hidden.

                                      I've the same situation under Windows XP 3.
                                      If I select components within a group and launch Viewparts, it creates all the needed scenes but all is hidden. And no way to unhide anything.

                                      Have a look at the attached file.

                                      Driven, If you don't mind, I'd like to have your updated script with TIG's modifications to do a test.
                                      I'm sorry but I'm really not a Ruby scripter.
                                      Thanks.

                                      [attachment=0:3wnzrn5t]<!-- ia0 -->cerificateur-scenes.skp<!-- ia0 -->[/attachment:3wnzrn5t]

                                      i have the same problem is ther any one ho has a answer or solution for this problem already ❓ ❓

                                      is there no one ho has a solution for this problem 😢 . this can make this plugin very useful 😄

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        driven
                                        last edited by

                                        hi dannyver,

                                        I don't use SU 6 and I'm on a mac so it's hard to know what issues your having.

                                        maybe you could re-cast your question to target your setup better.

                                        e.g. "I've tried this plugin using SU6 on this skp and it doesn't seem to function, can someone check if it's my skp?

                                        or "can someone post a skp that works with this plugin in SU6 so I can check my setup..."

                                        With the first example you'll likely find out if your skp works or with the second you'll eliminate a wrongly setup skp...

                                        sorry I can't be of more help. Personally I know it 'basically' works on mac using SU8, but I only tested the functionality for future use.

                                        other than that I suggest checking you've got the latest version, and re-read any instructions or posts.
                                        also, if you no longer use SU6 update your User Settings.
                                        john

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

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          Jim
                                          last edited by

                                          @dannyver said:

                                          is there no one ho has a solution for this problem 😢 . this can make this plugin very useful 😄

                                          You need to explode the top-level Group or Component. The plugin is not designed to work when in the context of Component.

                                          Hi

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dannyver
                                            last edited by

                                            @driven said:

                                            hi dannyver,

                                            I don't use SU 6 and I'm on a mac so it's hard to know what issues your having.

                                            maybe you could re-cast your question to target your setup better.

                                            e.g. "I've tried this plugin using SU6 on this skp and it doesn't seem to function, can someone check if it's my skp?

                                            or "can someone post a skp that works with this plugin in SU6 so I can check my setup..."

                                            With the first example you'll likely find out if your skp works or with the second you'll eliminate a wrongly setup skp...

                                            sorry I can't be of more help. Personally I know it 'basically' works on mac using SU8, but I only tested the functionality for future use.

                                            other than that I suggest checking you've got the latest version, and re-read any instructions or posts.
                                            also, if you no longer use SU6 update your User Settings.
                                            john

                                            i update my user settings right away 😉

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

                                            Advertisement