sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin] Slots 4 Tabs

    Scheduled Pinned Locked Moved Plugins
    10 Posts 4 Posters 12.0k Views 4 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.
    • K Offline
      kyyu
      last edited by kyyu

      This plugin automatically makes mating slots for a part with tabs.

      @unknownuser said:

      Copyright(C) 2010, kyyu
      All Rights Reserved
      Permission to use, copy, modify, and distribute this software for any purpose
      and without fee is hereby granted, provided this notice appears in any copies.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
      WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

      Name: Slots 4 Tabs
      Version: 1.1
      SU Version: 7.0
      Date: 06-02-2010

      Description: Automatically makes mating slots for a tabbed part
      Usage: Select both the parts (each grouped) and right click context menu ( [kyyu]/Slots 4 Tabs )
      * Plugin will automatically detect which part is which
      * Parts should be place in proper perpendicular, intersecting position
      * Parts are assumed to be flat plates, thickness same as tab height
      * Tab height needs to match expected thickness exactly (default is 0.25 inch)
      * How to change thickness value:
      1) Type for example "$kyyu_s4t = 0.25 or 3.mm" into the Ruby Console. Will be good for entire SU session.
      2) Or change the default permanently, a few lines down in the code.
      * Plugin automatically defaults to the move tool when done. You can comment this out, if not wanted.

      History:
      1.0 (05-27-2010) - first version
      1.1 (06-02-2010) - fixed some metric bugs

      =end

      [flash=554,406:wn4hl47m]http://www.youtube.com/v/zIjcqTf-hxI[/flash:wn4hl47m]

      New version 1.1 (fixed some metric bugs)

      ky_Slots_4_Tabs (v1.1).rb

      Slots_4_Tabs (0.25 inch test file).skp

      Slots_4_Tabs (0.125 inch test file).skp

      Slots_4_Tabs (3mm test file).skp

      -Kwok

      1 Reply Last reply Reply Quote 0
      • X Offline
        xrok1
        last edited by

        thats pretty cool! if you plan on taking this further i think automatically generating tabs of predefined sizes on clicked edge and tolerances (gaps) between slots and tabs would be excellent additions to this plugin. πŸ˜„

        β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

        http://www.Twilightrender.com try it!

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

          Yes, I agree, auto tabs would be cool. So little time, and some many plugins to write. πŸ˜‰ -Kwok

          1 Reply Last reply Reply Quote 0
          • E Offline
            eco_artbarn
            last edited by

            hey kwok,
            great idea
            though when i do all the steps no slots are created
            any suggestions?

            cheers

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

              @eco_artbarn said:

              hey kwok,
              great idea
              though when i do all the steps no slots are created
              any suggestions?

              cheers

              Hi. I was going to ask if they were groups, but I just checked and you would have gotten an error message. If you can post a sample file, I will take a look at it. Or you can give my test file a try:

              Make Slot test_v1.skp

              -Kwok

              1 Reply Last reply Reply Quote 0
              • E Offline
                eco_artbarn
                last edited by

                hi i have tried yours and it works great

                but my file does not, i have tried typing in and changing to decimal in ruby but i get this:

                $kyyu_s4t = 3.mm
                0.118110236220472
                Error: #<ArgumentError: comparison of Length with nil failed>
                C:/PROGRA~1/Google/GOOGLE~2/Plugins/ky_Slots_4_Tabs (v1.0).rb:35:in ==' C:/PROGRA~1/Google/GOOGLE~2/Plugins/ky_Slots_4_Tabs (v1.0).rb:35:in kyyu_Slots_4_Tabs'
                C:/PROGRA~1/Google/GOOGLE~2/Plugins/ky_Slots_4_Tabs (v1.0).rb:250
                C:/PROGRA~1/Google/GOOGLE~2/Plugins/ky_Slots_4_Tabs (v1.0).rb:250:in `call'

                i tried changing it in the plugin in notepad but it didn't make any difference

                attached is my file, maybe i am missing some simple step?
                i need to work to 3mm
                cheers ashley


                slots 1.skp

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

                  Hi eco_artbarn,

                  Ok, I've fixed it and should now be working for metric. The 1st post has been updated with v1.1. This plugin is based on a whole string of assumptions and metric just doesn't work 100% of the time. But the bad news is your parts have a problem, I think. At least on my computer. It's the 1st time I have seen it massively fail and deform the part, instead of just giving an error message and stopping. Using 3.mm worked on my test 3 mm file, but not on yours. For some strange reason your 3mm is slightly different than what my computer draws. See the picture below. My coversion is exactly what the goggle calculator shows. Yours is not. If I type in exactly $kyyu_s4t = 0.11817322834643, then your part works. Otherwise massive failure. Just hit undo. I've stepped through it, but have no clue. One second it is fine and then next step, the faces are fractured and many bits gone. Possibly, your computer will not have a problem, if it's all consistant there.

                  Oh, if you want to measure the edge yourself, just select the edge and type this into the ruby console "Sketchup.active_model.selection[0].length"

                  s4t_metric problem.png

                  -Kwok

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    eco_artbarn
                    last edited by

                    hi kwok
                    well done
                    no idea about my measurements being off on my computer, but that did work now by putting

                    $kyyu_s4t = 3.mm

                    can i just open up the plugin in note pad and change that line to make it do that permanently?

                    many thanks for your help.
                    now i just need to try and unfold it all to try and create some 2d files to laser cut using the finger joints.
                    we never seem able to match up all 6 sides of an object when using a line cutting programm

                    big thanks

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

                      @eco_artbarn said:

                      ...
                      $kyyu_s4t = 3.mm

                      can i just open up the plugin in note pad and change that line to make it do that permanently?
                      ...

                      Cool! Glad it's working. πŸ˜„ Yes, you can just edit it, like a text file. -Kwok

                      1 Reply Last reply Reply Quote 0
                      • O Offline
                        OregonCoastDad
                        last edited by

                        Hello,

                        I'm planning to download and play with this. I was wondering will it work on curved edges and parts?

                        Brock

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

                        Advertisement