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

    [Plugin] Simple Shell (scaled copy)

    Scheduled Pinned Locked Moved Plugins
    38 Posts 12 Posters 41.1k 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.
    • 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
                          • D Offline
                            dtrarch
                            last edited by

                            Hi Jim
                            FYI: ?
                            I get this error loading SU 7.1 free with the script installed per your first thread posted.
                            Error Loading File jf_simple_shell.rb
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:1: syntax error
                            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:2: syntax error
                            <html xmlns="http://www.w3.org/1999/xhtml">
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:3: syntax error
                            <head>
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:5: syntax error
                            <title xmlns="http://www.google.com/ns/jotspot">Download Attachment</title>
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:6: syntax error
                            <style xmlns="http://www.google.com/ns/jotspot">
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:19: syntax error
                            content: ".";
                            ^
                            C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:70: syntax error
                            <body xmlns="http://www.google.com/ns/jotspot">
                            ^
                            dtr

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

                              dtrarch,

                              That looks like a HTML file.

                              Try right-clicking this link, then select Save Link As (or Save Target As) to download the file.

                              Hi

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

                                Updated to create a shell from selected surface, in addition to a selected Group.

                                See First Post.

                                Hi

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

                                  Cool! But the same with scale from a opposite point will be also useful πŸ˜‰

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

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

                                    Jim

                                    Somehow I did download the html. 😳
                                    Your link worked perfect and thank you so much 😍
                                    OK for SU V8 pro too.
                                    Very handy tool. πŸ‘ πŸ‘

                                    Dave #2

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sahi
                                      last edited by

                                      Hi,
                                      Cool. It reminds me my old Object πŸ˜’
                                      here: http://forums.sketchucation.com/viewtopic.php?f=180&t=11677

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

                                        Thanks sahi,

                                        Yes, my plugin is almost exactly the same as yours - I may not have written another if I knew one already existed.

                                        One reason it couldn't be found is the topic lacks the [Plugin] text that is used by the Plugins Index, and so is not listed. I have requested the mods add the tag so the plugin will be listed.

                                        Hi

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sahi
                                          last edited by

                                          @jim said:

                                          One reason it couldn't be found is the topic lacks the [Plugin]

                                          That's my fault. I have not posted it here. (But that was long ago 2008)

                                          1 Reply Last reply Reply Quote 0
                                          • McGyverM Offline
                                            McGyver
                                            last edited by

                                            Thank you very much! I can see many uses for this plugin!!

                                            [Visit My ShareCG Freebie Gallery](http://www.ShareCG.com/pf/full_uploads.php?pf_user_name)

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

                                            Advertisement