SketchUcation Plugin Store

 

 

Sketchup CNC

To access this forum when logged in, please, sign up to the Woodworking User Group in your User Control Panel.

Re: Sketchup CNC

Postby Scott M » Mon Apr 30, 2012 11:30 am

Hi Noel
Our Machine is a 3 axes thermwood CS 45 It has the gen 2 super control with a twelve position auto tool changer 7 at the back and 5 at the head .It also has a auto tool length tool measure. By the way I am assuming the file format that the G code will be in is a NC format. Our machine will accept NC files as well as dxf files.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Tue May 01, 2012 10:40 am

Hi there Scott.

Well, your CNC is certainly a lot closer to ours than a DIY CNC. The auto tool length sounds really cool (wish I had it!).

The way I understand, it Gcode is NC format. You can organise DXF files in such a way that your CNC machine "imports" them by following polylines according to layer and drilling holes where circles are drawn. I always had the feeling that this was kind of a botch job and haven't really looked into it in any detail.

Indeed, this plugin generates NC files, not DXFs. The way I went about it was simply reverse engineering (Sounds cool but it was my first attempt at it). I defined a simple toolpath from (100,100,19) to (200,200,19) and a simple 5mm diameter hole (50,50,19). I then looked at the file in notepad and with the help of wikipedia http://en.wikipedia.org/wiki/G-code I started figuiring out what each part did. It's a lot simpler than it sounds.

If you send me a NC file with the toolpath and hole I have specified above, I'll let you know how easy/difficult it will be to get a postprocessor working for you.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Tue May 01, 2012 11:26 am

Sorry Noel but currently I can not generate a NC. File my self. The programs that I have available that can generate these types of files are only trial versions and will not allow me to save tool paths that I create myself. The main program we use is Ecabinet systems and it creates it own type of file format (TWD) and is encrypted when you open it in notepad.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Tue May 01, 2012 12:37 pm

So, if i understand correctly, you are only capable of manufacturing whole cabinets. You can't program a couple of hole and a toolpath with a cabinet software solution. I suspect though, there should be some rudimentary application installed on the computer that atually controls the machine that should allow you to program individual operations.

Nonetheless your ecabinet solution generates NC files for your CNC (I very much doubt it exports to DXF). Try designing a ridiculously simple cabinet with no shelves and no door and send me the NC file/files generated from it. I should be able to work out a fair ammount from that.

PS: If your CNC machine also works with job lists, send me that file too.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Wed May 02, 2012 12:10 am

Yes Noel we do have A way to create the tool paths you are speaking of Only it is with our hand held programmer of witch I have no experience in using except for moving the head in x,y,z positions for setting fixture offsets and such. This is because there has never ben a need for manually programing such moves as you described. I do have a step by step tutorial that I can try to recreate the file you are wanting. I will try to sneak it in on my breaks.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Wed May 02, 2012 10:55 pm

Here is a little teaser of something I recently manufactured from within Sketchup. It was made possible thanks to another free plugin (bezier curves).
https://plus.google.com/u/0/106243199685455140135/posts/Sdisrj9khY6
I'll be publishing a screen cast soon enough
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby noelwarr » Fri May 04, 2012 5:44 pm

I know some people have been having trouble getting hold of the code. I have added a download tab to the project site http://code.google.com/p/minivistii/downloads/list to make it easier for people to download and try out. I'll try and keep it up to date with the source code but am giving no guarantees. :D

If you are interested in contributing to the code base you are going to have to use GIT. I use the follwing setup
Sketchup + Eclipse + Sketchup bridge + EGit
It's fast and efficient. If you don't know what these things are or how to use them, let me know and I'll help get it up and running. I don't know what your current setup is but if it's notepad or webconsole, you'll be shocked at the up in productivity you get!
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby alpmeadow » Sat May 05, 2012 2:51 pm

Hi
I do have a small CNC machine (Carvewright) however its software designer is proprietary. I will be pleased to follow this thread and comment. I have used sketchup designs imported to the software thru grayscale png images. Here are some samples of designs with and without sketchup.
Without SU https://picasaweb.google.com/lh/photo/VtbEQ11Mit8eB5QZUbbKCNMTjNZETYmyPJy0liipFm0?feat=directlink
With SU https://picasaweb.google.com/lh/photo/_ARIIvY-0ihQ0AclttwxptMTjNZETYmyPJy0liipFm0?feat=directlink
Cheers
Irv
alpmeadow
 
Posts: 42
Joined: Tue Feb 05, 2008 6:29 pm
Location: Golden BC, Canada
Name: I Graham

Re: Sketchup CNC

Postby noelwarr » Sat May 05, 2012 6:13 pm

Hi there alpmeadow.
Googled Carvewright. Cool gadget, though I'm not sure I like the way jobs are transferred to it. Is that a cartridge? There is a fair chance it still uses gcode to operate. I'm guessing that the files are mysteriously put on the cartridge by the software to avoid people tampering with them. If you can't see the contents of the cartridge from windows/mac, you might try the following...
Download ubuntu, burn to a CD, boot your computer into ubuntu (You don't have to install it) and plug-in you cartridge reader and see if you can read it's contents. Linux is always a little more hacker friendly.
If you can't get access to the cartridge, this thread will be of little use to you.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Sat May 05, 2012 7:02 pm

Noel I have a drill icon if you would like to give a look at. I tried to edit the number of pixels to 24X24 but it became too blurred
Please, register (free) to access all the attachments on the forums.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Sat May 05, 2012 10:04 pm

Can you believe it never occured to me to design the icons in sketchup? :oops: Live and learn. If you remove the text (I doubt it'll be legible at 24x24), zoom out till it's the same size as the icons in sketchup, hit the print screen or "prt scr" button on you keyboard (One never knows if one is being condescending), then just paste it into paint or whatever application, you should be set to go. Scaling images can be tricky. Paint will mess up your resolution by essentially deciding "this pixel goes this one can stay", while apps like GIMP will scale smoothly, merging pixels together.

Great start. Could you also attatch the skp file so I can include it in the source code? If you like, I'll take care of getting the png file from the model. Do you think you could model the other 4 icons?

PS: did you get the drill bit from the warehouse? I wouldn't know where to begin to get a spiral!
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Sat May 05, 2012 10:56 pm

Yes I did get the drill bit from the warehouse I do however have the helix plugin but ran out of time trying to get the effect I was after so I went to the old faithful warehouse where I found the bit instantly. Yes I will give the rest a shot .Can you post a link to this GIMP program. This time I will try to make it all myself as tempting as it is to just find the model your looking for in the warehouse there is so much self rewardisam (for the lack of better terms) in making it from scratch myself.I will pm you the skp file
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Sat May 05, 2012 11:06 pm

GIMP is an opensource project similar to photoshop. http://gimp-win.sourceforge.net/stable.html It has a steep learning curve and I actually don't recommend it unless you want to design a brochure or poster or something. It's just too powerful. For scaling something like this icon we want I suggest something more user friendly like Picasa. It'll do nicely.

While were on the subject of scaling, in case you ever need to enlarge an image, check this little project out...
http://sourceforge.net/projects/imageenlarger/ Cool stuff
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Sun May 06, 2012 10:34 pm

I was wandering if that file I pm'd you worked out ok I have another in the works but I still cannot get an acceptable image when reducing the pixels to 24X24 maybe you cane work with the skp Files?
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Mon May 07, 2012 9:32 am

Before trying anything else I tried scaling your icon (without the text) in Paint. I was surprised how well it scaled (Maybe Paint got better with windows7). I don't think we'll be able to do much better that this.

On a more general note, your icon was very detailed. Perhaps too detailed for something to be viewed at 24x24. I think icons are meant to be more symbolic. But NO MATTER. The Sketchup eraser, for instance, looks nothing like an eraser I've ever seen. But it doesn't matter because after you know what it is and does and you recognise it immediately. The icons you're designing will work a charm as long as they are distinguishable and recognizable. So thanks for the work! :ecstatic:
Please, register (free) to access all the attachments on the forums.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Dave R » Mon May 07, 2012 10:37 am

Nice icon. I think I'd make the background white. Transparent would be good, too. And make the cherry material lighter so it reads better when tiny.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8980
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: Sketchup CNC

Postby noelwarr » Mon May 07, 2012 12:13 pm

I'm just glad to have something to use! :D Anything is better than the blank icons I am currently using. Scott's doing a fine job.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby noelwarr » Mon May 07, 2012 1:59 pm

ANNOUCEMENT:
The project's first tutorial/screencast. Here is hoping it gives you some idea of what the plugin does.

https://plus.google.com/u/0/106243199685455140135/posts/9xCjXqFJkug
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Tue May 08, 2012 11:59 am

Noel I loaded the plugin and followed the steps but when I wright the G code I get the following error in the ruby console.
Error: #<Errno::ENOENT: No such file or directory - c:\Users\Noel\CNC>
C:/Program Files/Google/Google SketchUp 8/Plugins/postprocessor.rb:181:in `chdir'
C:/Program Files/Google/Google SketchUp 8/Plugins/postprocessor.rb:181:in `make'
C:/Program Files/Google/Google SketchUp 8/Plugins/minivistii/ui.rb:250
C:/Program Files/Google/Google SketchUp 8/Plugins/postprocessor.rb:181:in `call'
C:/Program Files/Google/Google SketchUp 8/Plugins/postprocessor.rb:181
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Tue May 08, 2012 12:07 pm

Mmm... Indeed you would get that error. At the moment the plugin is only really usable by people who are comfortable editing some ruby. postprocessor.rb is trying to save the CNC files to my directory ("c:\Users\Noel\CNC"). If you want to give it a shot, scan through the file. You should be able to spot the paths. Look for the double slashes (Mac unfriendly as Tim pointed out).

I'm working on making it all MUCH easier to edit. Keep you posted.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Tue May 08, 2012 10:58 pm

Just curious but would it be more user friendly for the user to draw the tool paths on the work piece then select that geometry and select the tool path button then have a pop up info box for them to set the tool info such as cut diameter cut depth feed speed rpms and maybe a max plunge for that tool as well as the other info you have set up (cut direction,compin,compout,or centerline.)That way the user would not have to move the geometry into the work piece out of view. If the geometry is a circle they would select the drill button and do the same process. And if the geometry is on the back side of the work piece then all of those tool paths would be back operations. Not trying to redesign your plugin just brainstorming. Another thought is to have some sort of database to setup the tools for the toolbox so the user could just select the toolbox button and enter the tool geometry as well as feed speed plunge rate etc. for that tool. See The attached file hopes this explains it better
Please, register (free) to access all the attachments on the forums.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby Scott M » Tue May 08, 2012 11:44 pm

By the way I am taking Dave's advise after seeing your post I think I can come up with someting better. That one looks like a tooth pick jabbed into a board
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Wed May 09, 2012 8:07 am

:D Don't be so hard on yourself. I'm just glad to have your help. Just one thing... If you are going to edit it please don't make the background white. Use the same grey as the rest of the sketchup icons otherwise it'll look out of place.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Dave R » Wed May 09, 2012 12:09 pm

FWIW, the other toolbar icons have a transparent background, not grey.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8980
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: Sketchup CNC

Postby noelwarr » Wed May 09, 2012 6:12 pm

I thought png didn't do transparency... my bad. I've always found transparency tricky to work with, though if the other icons have transparent backgrounds it would clearly be the most correct. Imagine if SU9 changed its colour theme to green :mrgreen: Our buttons would be the only grey ones. How dire that would be
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Thu May 10, 2012 12:17 am

Noel here are some icons please tell me what you think and maybe Dave will approve also
Please, register (free) to access all the attachments on the forums.
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

Re: Sketchup CNC

Postby noelwarr » Thu May 10, 2012 7:36 am

The colours came as a bit of a shock but after a few seconds I warmed to them. I love the retro feel, ESPECIALLY the 5 1/4 inch floppy. What a pleasant surprise! First time I've seen Sketchup used for 2D too
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby noelwarr » Thu May 10, 2012 10:40 am

Looking good AND retro!
Please, register (free) to access all the attachments on the forums.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby noelwarr » Thu May 10, 2012 4:35 pm

My head's about to explode.
noelwarr
 
Posts: 64
Joined: Mon Jun 20, 2011 5:07 pm
Name: noelwarr

Re: Sketchup CNC

Postby Scott M » Thu May 10, 2012 10:44 pm

noelwarr wrote:My head's about to explode.

I hope its not the icons
Scott M
 
Posts: 51
Joined: Sat Oct 16, 2010 1:43 pm

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Woodworking

Who is online

Users browsing this forum: No registered users and 1 guest