Loading
Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

Breed Customizable 4x Leash Hook

by areeve20, published

Breed Customizable 4x Leash Hook by areeve20 Jan 31, 2013

Description

I wanted to make a hook to mount near the door to hang the dog leash, my keys, and a "paw towel" on. I have a cute little pug named doughnut and I thought it would be cool to put a little pug silhouette on it, but then I thought that this might be a good opportunity to utilize the Makerbot "customizer" app for people with other breeds.
I am very new to OpenSCAD, the only other thing I have made is a customizable little tube. However, I am always eager to learn so I started doing some research. I was looking for a way to draw the silhouettes when I stumbled upon dnewman's "Inkscape to OpenSCAD converter v2". thingiverse.com/thing:25036
Perfect! I simply vectored my silhouettes in illustrator and used dnewman's Inkscape extension to convert them to .scad.
I am sure there is a better way to make the "options" then the way I did it (feel free to post in the comments).

Current Available Breeds: beagle, boston, boxer, bull, chihuahua, dachshund, doberman, german, golden, greyhound, lab, pomeranian, poodle, pug, rottweiler, schnauzer, springer, yorkshire.

PS - There are a lot of breeds out there so if you would like me to add one, just let me know. Otherwise, I will be slowly adding more at random.

Recent Comments

view all
Created a Cardigan Welsh Corgi variation. Haven't printed yet and was my first attempt at 3d design so apologies if its goofy.
thingiverse.com/thing:413695

More from Pets

view more

Makes

Liked By

view all
Pops n ezza with nyc filter

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

Instructions

*Launch in the Customizer app.
- There will be no rendered object until you select a breed from the drop down.

*Select a Breed.
- Current Available Breeds: beagle, boston, boxer, bull, chihuahua, dachshund, doberman, german, golden, greyhound, lab, pomeranian, poodle, pug, rottweiler, schnauzer, springer, yorkshire.

*Create .STL

Enjoy!

PS - There are a lot of breeds out there so if you would like me to add one, just let me know. Otherwise, I will be slowly adding more at random.
Created a Cardigan Welsh Corgi variation. Haven't printed yet and was my first attempt at 3d design so apologies if its goofy.
thingiverse.com/thing:413695
I see in your openscad-script that you repeat the code for the Hooks for every breed.
Code that is the same every time can be put in a 'module'.
That way you can save some diskspace ;-)

like so: //sample code

module makeCube(){
translate([5,6,7])
rotate(45,[1,0,0])
cube([1,2,3]);
}

//Make a cube
makeCube();

//Make another cube, saves a couple lines of code
makeCube();

I'll check if I make your code a bit shorter (and more simple / easy to read) that way
Done!
Add the module 'hooks' somewhere at the end of your file, and type 'hooks();' everytime you need hooks ;-)

module hooks(){

union(){

translate([-22.5,0,0]){

hookPart();

}

translate([12.5,0,0]){

hookPart();

}

translate([-60,0,0]){

hookPart();

}

translate([50,0,0]){

hookPart();

}

//base-part

translate([0,-40,2])

cube([120,10,4],center=true);

}

}

module hookPart(){

translate([0,-40,21])

rotate([45,0,0])

cube([10,10,5]);

translate([0,-45,0])

cube([10,5,25]);

}

hooks();
Worked like a charm...Thanks!

I knew there had to be a way to do it, but once I had it working the way I did it, I just went for the copy/paste. I am still learning.

I added a credit to you in the code for the module in v2.0

Thanks again!
I have changed the code a bit more.
See here:
http://www.thingiverse.com/thing:48622
It still does the same, but I think it will be easier to add images in the future.

Is it OK if I re-use your dog-images in another project?
This one:
http://www.thingiverse.com/thing:47759
It is a collection of Customizer-compatible images :P
No problem, go right ahead.

What in the code changes the default view orientation in the customizer app? I would prefer if mine was top view like yours is, so you could make out the breed silhouette better as you are using it.
The first line of the file must be:
//preview[view:south, tilt:top]
This will change the default preview angle.
(The user is still able to change the preview angle if they want to)
Thanks!

Where did you learn all this stuff? Just from messing around with it?
I'm a programmer/developer.
(I started programming like 10 years ago)
I make Android applications for a living (and hobby)
So I am used to dealing with 'code duplication' and preventing it :-).
For the OpenSCAD things, I just started using OpenSCAD recently. But I have learned a lot from reading this website:
http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
For the preview code for Customizer, it is in the docs:
http://customizer.makerbot.com/docs
Top