sketchucation logo sketchucation
    • Login
    โš ๏ธ Attention | Having issues with Sketchucation Tools 5? Report Here

    [Plugin] Simple Shell (scaled copy)

    Scheduled Pinned Locked Moved Plugins
    38 Posts 12 Posters 41.2k Views 12 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.
    • Rich O BrienR Offline
      Rich O Brien Moderator
      last edited by

      Jim,

      An excellent time-saver. Thanks! ๐Ÿ‘

      Download the free D'oh Book for SketchUp ๐Ÿ“–

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        What is the process?
        I take a square 10 * 10 m
        pushpull 10 m
        so a cube
        make Group
        Call Simple Shell
        enter 0.5m
        nothing ๐Ÿ˜ฎ
        What I miss? ๐Ÿ˜ณ

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • Rich O BrienR Offline
          Rich O Brien Moderator
          last edited by

          It works on your exact proposal Pilou so the problem between the keyboard and the chair ๐Ÿ˜’

          Download the free D'oh Book for SketchUp ๐Ÿ“–

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

            The answer is within.

            Hi

            1 Reply Last reply Reply Quote 0
            • mitcorbM Offline
              mitcorb
              last edited by

              Good job, Jim

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

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                @unknownuser said:

                so the problem between the keyboard and the chair

                Surelly ๐Ÿ’š
                Does the plug works in any version or just in the last V8?

                I have this in the ruby console (i am in V6)

                jf_simple_shell.rb
                Error; #<NameError; (eval);27; undefined local variable or method `jf_simple_shell' for main;Object>
                (eval);27
                

                Edit: Works in the V7 ! ๐Ÿ˜‰
                so the problem is outside the keyboard and the chair ๐Ÿ’š

                So does it possible to make something for working in the V6?

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

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

                  Jim, I tried running your plugin on a simple sphere in V8. I got the following:

                  Error; #<NoMethodError; undefined method `copy' for #<Sketchup;;Face;0xd44930c>>
                  C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31;in `simple_shell'
                  C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;2
                  C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31;in `call'
                  C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31
                  
                  

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    And some add for have a "complex result" ?
                    because now there is no inside the plug close function of open surfaces ๐Ÿ˜‰
                    And Scale function from Specific axis
                    complex.jpg

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

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

                      @dave r said:

                      Jim, I tried running your plugin on a simple sphere in V8. I got the following:

                      Dave,

                      Are you selecting a Group? I've modified the menu to be grayed-out unless a single Group is selected.

                      Hi

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

                        @unknownuser said:

                        I have this in the ruby console (i am in V6)

                        This I don't understand at all. Nowhere have I used jf_simple_shell in the plugin.

                        Hi

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

                          No. I just selected loose geometry. The input box came up so I didn't think I was doing anything wrong. Just got to work and downloaded it. Will give it a try. I assume this is a change from the version I downloaded at home? Could it be made to work on components, too?

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

                          1 Reply Last reply Reply Quote 0
                          • pilouP Offline
                            pilou
                            last edited by

                            @unknownuser said:

                            This I don't understand at all. Nowhere have I used jf_simple_shell in the plugin.

                            There is no possible conflict with forbidden names of variables in Ruby language?
                            Or maybe V6 Ruby engine is too old for new version?

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

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

                              Did you type jf_simple_shell.rb in the Ruby Console? Because that has no meaning in Ruby.

                              It would be: load "jf_simple_shell.rb"

                              Followed by: JF.simple_shell

                              But there should be a menu: Plugins/JF Simple Shell available when a single Group is selected. Is the menu visible?

                              Hi

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

                                Jim, it does work on a group in V8. I must have missed the part about making a group.

                                And while I'm being a pain, would it be possible to have an option to make the inner shell part of the selected group/component instead of its own component or group?

                                Maybe it wouldn't be Simple Shell, then.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

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

                                  @dave r said:

                                  And while I'm being a pain, would it be possible to have an option to make the inner shell part of the selected group/component instead of its own component or group?

                                  Maybe it wouldn't be Simple Shell, then.

                                  So you want a Group in a Group, or 2 Groups in a Group?

                                  Either way, I don't think moving Groups in this way is directly supported by the API, and there may be a bug involved if not done right. But I'll see what can be done.

                                  Hi

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

                                    Actually, I'd rather not have the inner shell made as a group at all. I'd rather it be part of the selected group, or better in my case, component. Better, it could be an option to have it made into a separate component/group and if the selected thing is a component, make a component. If it is a group, make a group.

                                    Here's a quick example of where it would be nice to have the shell be part of the selected C/G.


                                    http://farm6.static.flickr.com/5122/5241235096_75ab1c76be.jpg

                                    I made a simple sphere to test the plugin. After getting the shell, I decide to cut it open to make a sort of bowl. I had to explode the shell and then cut and paste in place the shell into the Sphere group before slicing off the top with a cutting surface. If the shell geometry was loose inside the selected G/C, there'd be no need to explode, cut and paste in place because the shell would be part of the selected component definition.

                                    Not that it makes any difference but I used the circle from the Follow Me path as the cutting plane and didn't delete the edge of the circle.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

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

                                      Ah, version 6 compatibility - should be fixed now.

                                      First Post

                                      Hi

                                      1 Reply Last reply Reply Quote 0
                                      • pilouP Offline
                                        pilou
                                        last edited by

                                        Yes I have the Menu JF Simple Shell ๐Ÿ˜‰

                                        Here the code in Ruby Console after I select the group and call the plug by the Menu
                                        and enter some measures in the Dialog box
                                        (same result with the direct Ruby console commands)

                                        Error; #<ArgumentError; wrong number of arguments(2 for 1)>
                                        C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;30;in `start_operation'
                                        C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;30;in `simple_shell'
                                        C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;2
                                        C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;2;in `call'
                                        

                                        Frenchy Pilou
                                        Is beautiful that please without concept!
                                        My Little site :)

                                        1 Reply Last reply Reply Quote 0
                                        • pilouP Offline
                                          pilou
                                          last edited by

                                          Works fine now in the V6 ๐Ÿ˜Ž
                                          You rocks! ๐Ÿ‘
                                          I don't retry with the V8 and V7 ๐Ÿ’š
                                          shell.jpg

                                          Edit : works also with the V7 ๐Ÿ˜‰

                                          Frenchy Pilou
                                          Is beautiful that please without concept!
                                          My Little site :)

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

                                            @Dave, I would like to keep the created shell as a Group. This is so the operator can make sure the shell does not intersect with anything else before moving on. There may be scaling or other adjustments (snoothing, reverse faces) that should be done, too. This allows the operator the most choices on the next action.

                                            One small thing I will have the plugin do is to select the created shell Group as the last step. Then at least it is ready to explode if you want.

                                            For shelling a Component, right now you could open the Component, select all, make it a Group, shell it, then explode again. I know it's not optimal, but is one way to do it.

                                            It's possible to make the plugin work on a selected surface as well as a selected Group, so then you could open the Component, make the selection, and generate the shell; which is fewer steps. This is something I want the script to do, so it'll be available soon either way.

                                            Hi

                                            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