sketchucation logo sketchucation
    • Login
    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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Create lego-like solid pieces for assembly

    Scheduled Pinned Locked Moved SketchUp for 3D Printing
    sketchup
    9 Posts 4 Posters 25.3k 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.
    • Guillo_OrtizG Offline
      Guillo_Ortiz
      last edited by

      Hi!

      I'm attempting to make a split model for 3d printing and I'd like it to have joints to get a firm grip when assembled (like a lego).

      This is what I have:

      https://cdn-enterprise.discourse.org/sketchup/uploads/default/optimized/3X/3/e/3e2fd95e5402a7029f5b3a8a3667e1e0dbaf1c32_1_690x386.jpg

      Does anyone know of a plugin or a way to get this done?

      Thanks!

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

        Do you have an idea of the joint type you'll use?

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

        1 Reply Last reply Reply Quote 0
        • sdmitchS Offline
          sdmitch
          last edited by

          @guillo_ortiz said:

          Hi!

          I'm attempting to make a split model for 3d printing and I'd like it to have joints to get a firm grip when assembled (like a lego).

          This is what I have:

          https://cdn-enterprise.discourse.org/sketchup/uploads/default/optimized/3X/3/e/3e2fd95e5402a7029f5b3a8a3667e1e0dbaf1c32_1_690x386.jpg

          Does anyone know of a plugin or a way to get this done?

          Thanks!

          Here is a start. You will need to change the values to suit your situation.

          unless file_loaded?((__FILE__))
          	UI.add_context_menu_handler do |menu|
          		sel = Sketchup.active_model.selection
          		if sel.first.is_a?(Sketchup;;Face)
          			menu.add_separator
          			menu.add_item('Dimple') { 
          				face = sel.first; ctr = face.bounds.center; nrm = face.normal
          				cir = Sketchup.active_model.active_entities.add_circle(ctr,nrm,0.125,12)
          				pts = cir.map{|e|e.vertices}.flatten.uniq.map{|v|v.position}
          				fac = Sketchup.active_model.active_entities.add_face(pts)
          				fac.pushpull -0.25 if fac
          			}
          			menu.add_item('Pimple') { 
          				face = sel.first; ctr = face.bounds.center; nrm = face.normal
          				cir = Sketchup.active_model.active_entities.add_circle(ctr,nrm,0.125,12)
          				pts = cir.map{|e|e.vertices}.flatten.uniq.map{|v|v.position}
          				fac = Sketchup.active_model.active_entities.add_face(pts)
          				fac.pushpull  0.25 if fac
          			}
          		end
          	end
          	file_loaded((__FILE__))
          end
          
          

          dimpandpimp.gif

          Nothing is worthless, it can always be used as a bad example.

          http://sdmitch.blogspot.com/

          1 Reply Last reply Reply Quote 0
          • Guillo_OrtizG Offline
            Guillo_Ortiz
            last edited by

            @rich o brien said:

            Do you have an idea of the joint type you'll use?

            Not really, any type will do.

            1 Reply Last reply Reply Quote 0
            • Guillo_OrtizG Offline
              Guillo_Ortiz
              last edited by

              @sdmitch said:

              @guillo_ortiz said:

              Hi!

              I'm attempting to make a split model for 3d printing and I'd like it to have joints to get a firm grip when assembled (like a lego).

              This is what I have:

              https://cdn-enterprise.discourse.org/sketchup/uploads/default/optimized/3X/3/e/3e2fd95e5402a7029f5b3a8a3667e1e0dbaf1c32_1_690x386.jpg

              Does anyone know of a plugin or a way to get this done?

              Thanks!

              Here is a start. You will need to change the values to suit your situation.

              unless file_loaded?((__FILE__))
              > 	UI.add_context_menu_handler do |menu|
              > 		sel = Sketchup.active_model.selection
              > 		if sel.first.is_a?(Sketchup;;Face)
              > 			menu.add_separator
              > 			menu.add_item('Dimple') { 
              > 				face = sel.first; ctr = face.bounds.center; nrm = face.normal
              > 				cir = Sketchup.active_model.active_entities.add_circle(ctr,nrm,0.125,12)
              > 				pts = cir.map{|e|e.vertices}.flatten.uniq.map{|v|v.position}
              > 				fac = Sketchup.active_model.active_entities.add_face(pts)
              > 				fac.pushpull -0.25 if fac
              > 			}
              > 			menu.add_item('Pimple') { 
              > 				face = sel.first; ctr = face.bounds.center; nrm = face.normal
              > 				cir = Sketchup.active_model.active_entities.add_circle(ctr,nrm,0.125,12)
              > 				pts = cir.map{|e|e.vertices}.flatten.uniq.map{|v|v.position}
              > 				fac = Sketchup.active_model.active_entities.add_face(pts)
              > 				fac.pushpull  0.25 if fac
              > 			}
              > 		end
              > 	end
              > 	file_loaded((__FILE__))
              > end
              > 
              

              Thanks for the plugin! It's very close to the effect I'm looking for. BTW, how can I change the units to cm? I tried writing "cm" and " cm" after the number, but got an error.

              1 Reply Last reply Reply Quote 0
              • sdmitchS Offline
                sdmitch
                last edited by

                @guillo_ortiz said:

                BTW, how can I change the units to cm? I tried writing "cm" and " cm" after the number, but got an error.

                The syntax is ".cm", so 1.inch = 2.54.cm

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

                1 Reply Last reply Reply Quote 0
                • Guillo_OrtizG Offline
                  Guillo_Ortiz
                  last edited by

                  @sdmitch said:

                  @guillo_ortiz said:

                  BTW, how can I change the units to cm? I tried writing "cm" and " cm" after the number, but got an error.

                  The syntax is ".cm", so 1.inch = 2.54.cm

                  Thanks, sdmitch. In the end I used your method.

                  Thanks a lot!

                  https://cdn-enterprise.discourse.org/sketchup/uploads/default/original/3X/1/b/1b801c8aee26ab73cbb824f411bc983a90e8e7ca.jpg

                  1 Reply Last reply Reply Quote 0
                  • JQLJ Offline
                    JQL
                    last edited by

                    That won't have a very firm grip as it will twist upon the joint's axis. You should have at least 2 pins per joint... It also seems very prone to detach from each other. Maybe you now should model from what Mitch gave you.

                    www.casca.pt
                    Visit us on facebook!

                    1 Reply Last reply Reply Quote 0
                    • Guillo_OrtizG Offline
                      Guillo_Ortiz
                      last edited by

                      @jql said:

                      That won't have a very firm grip as it will twist upon the joint's axis. You should have at least 2 pins per joint... It also seems very prone to detach from each other. Maybe you now should model from what Mitch gave you.

                      Thanks, I will. I'm also going to use super glue to reinforce it.

                      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