Sketchup CNC
-
Cheers Anthony.
Just last week I got mailed by someone else working on another CNC plugin. (http://sketchucation.com/forums/viewtopic.php?f=180&t=48781&p=439028#p438163) I got sent a screen shot and it looks quite promising.
It might be interesting to form a kind of common language between all of our plugins. A standard of sorts. I have a rough idea of how that might work. Would you be willing to work together a little?
-
Hi Noel,
I'm always happy to jump onto a standard...but...I think my work is not actually closely aligned with the work you are doing...The Factory I work at makes kitchens.My project:
- in sketchup the user will construct a cabinet from rectangular prisms (dynamic components named Panel1,Panel2,Panel3,etc) eg 720mm x 538mm x 16mm.
- They will be able to click on which of the 4 panel edges will have "edgetape" applied.
- They will be able to place 5mmDrillHole dynamic components inside the Panel component. on one of the faces, for hinges, shelves etc.
- Then group several panels into a cabinet, and specify a cabinet name, number etc.
- The output will be a file which specifies the rectangle size, (adjusting for the thickness of the edgetape), and also where to drill the 5mm hole, and how deep.
- This file will be imported into "nesting software" (in this case Aspan (http://www.autosoftware.it/index.php/en/informations-/informazioni-aspan/menu-id-54.html)). This nesting software nests all the panels into a full sheet and writes gcode to cnc rout and drill the panels. and print labels to identify which cabinet and where to apply the edgetape.
- I'll build up a library of dynamic components of cabinets containing panels containing drilling structures containing 5mmDrillHoles....for faster drawing. So I can resize the cabinet from the library, and the holes will update, and get drilled to suit...what-you-see-is-what-you-get drilling and panel sizes.
So, I'm happy to try to work together, but, I think our goals are different...
My Maths is good...I have a clear understanding of matrices, vectors, dot and cross products, transformations, etc....but my ruby is really bad, I didn't know till I read your code that you can "class something < Array"...and now I want to overhaul badly written code...
all is not lost...If we write clearly commented code, others can see how we achieved something and might be able to use/modify that for themselves.
I think that people generally will have to modify the output routines or write/modify their own postprocessors anyway....so my output code will be commented and structured so that others will be able to customise it to their own nesting software...
Regards,
Anthony -
Ah! I misread your earlier post. You're right. There is little our scripts can do for one another. Good luck writing it. Ruby is a great language and has a great community.
I wish I had commented my code. The code of the project I am working on now has little or nothing to do with my first plugin. I really feel I have come a long way. But still I don't comment it. I have no excuse.
I don't want to seem pedantic but if you were surprised about inheretance (MyClass < Array) make sure you get used to working with blocks...
my_array.each{|obj| obj.do_something }
I consider them to be the most ruby thing about ruby. A good sign that you're doing things the ruby way is if you have no for/while/until loops in your code. But he coolest thing about ruby is you can do things any way you want. So if you like loops, go for it!
-
Hi Noel,
yeah, there is a little alignment, but not enough....I didn't have any problem reading your code...you use meaningful class and variable names, and you write a blurb at the start...people can read it....
yeah i did learn and use the .each thing....I even found the .reverse thing too when I needed it...
I actually read a few tutorials, and had read about inheritance, but didn't make the connection for " < Array"...till I read your code...
I quite like ruby, but still have lots to learn...I'm a little worried it might run too slow when I have it working, and am concerned that badly written code runs slow too...
Regards,
Anthony -
Great to know you can read it! There are a few recursive methods there that are so obfuscated that even I can't figure out how they work! Wish I had commented them
I don't think you'll have much of a problem with speed. Apart from general good practices there are a few Sketchup specific ones too. Off the top of my head...
- Interact with the model as little as possible.
- Don't use
my_entity.typename == "Edge"
instead use
my_entity.is_a?(Sketchup::Edge)
If you have to perform "serious" stuff there are always c extensions. But I wouldn't head down that path if I were you.
Keep me posted on how you get on. I'm at gmail with this username.
-
So, it's been almost a year. Has there been any more progress? OK not a year but for the impatient.......
-
@futurepast said:
So, it's been almost a year. Has there been any more progress? OK not a year but for the impatient.......
Did you read this....?
http://sketchucation.com/catch-up/334-catchup-edition-17
there's a preview in there
-
I'm guessing you're pointing to the Vistii article in CatchUp. Although Vistii and miniVistii share names (and developers), they are quite different. Fyi:
miniVistii is open-source, not at all user-friendly but functional. It alows you to declare edges as toolpaths and then convert them to Gcode. It is basically waiting for someone to come along and contribute. That said, I do 90% of my CNC manufacturing with it.
Vistii is a manufacturing service (Though this may change). It allows for no manual creation of toolpaths as they are all automatically generated. Vistii also simmulates the machining of the workpiece creating a kind of "print-preview" of what the end product will look like.
-
Has anyone seen this?Or used the plugin
http://www.wikihouse.cc/ -
I'm cooking something too.
Check out my blog http://paciente8159lab.blogspot.pt/2013/10/sketchup-3d-to-gcode-plugin.html -
@dave r said:
FWIW, the other toolbar icons have a transparent background, not grey.
Hi Dave,
I Have been reading at this site here about using sketchup with a cnc router for woodworking. Because it isn't that easy to pick in on a technical forum, I want to know where I can start.
Maybe you can suggest me where and how to start learning.
Thanks,
Bert
-
Bert, what is it you want to know? Do you have any specific questions?
-
HI Dave,a
In My workshop I have a morbidelli (scm group) 4 axes cnc router I use for cabinet making and other woodworking.
(curves,...) I have tried to use the export to dxf function of the sketch up 8 pro version, save as an auto cad 2010 dxf file. Then I open it in my text editor and save as a pmg file. The result is complete "no good". Then I used a plugin (export to dxf). I think I found it on ruby library depot. I can use only the 2D view from up. I did used it with success for a curved workpiece. Ofcourse with the changes of the tools, depths, radius corrections...Now I want to send the pieces of the cabinets I design with sketch up directly to the editor of my cnc.
The problem is with 3D imports. The editor doesn't recognize holes at the sides of a panel or sees the holes from the upper view. (as routing lines).So this is how far I got with it.
grtz,
Bert
-
Hi Bert
I have an SCM 5 axis machine which I use to cut a wide range of CNC components in solids and panels which I have modeled in sketchup. My work flow is as follows.
i)model in sketchup an entire assembly with various parts as solid components
ii) save individual components in their own files
iii)open individual files and export as iges using a iges export plugin (available through sketchucation tools)
iv)import iges solid into Alphacam (not sure what CAM software you are using but most decent packages will allow importing of iges solids)
v)tool path and cutPlease Note: Sketchup does not create true arcs, circles or splines- it breaks all of these geometries into segments. You will therefore never get other software to recognize geometry from sketchup as holes without some form of editing in the software that you are using to import the geometry. My typical work around in Alphacam for this is to ensure that when I draw the circles or arcs in sketchup I have very high segment count, Alphacam then has a utility which creates true arcs and circles by a kind of "best fit" process. Mostly though I dont even try export circles or arcs from sketchup as the results are unpredictable, I usually just draw them in alphacam.
If you would like some further advice I would be happy to look at one of your models that you are looking to use foor cutting- just private message me the model or upload it here.
Best Regards
Stephen -
would be interesting to see this applied to a cnc plasma which uses DXF
-
If your looking for a free open source easy to use SketchUp to Gcode generator please take time to look at SketchUcam
http://www.openbuilds.com/resources/sketchucam.1/We use it all the time here at the shop for making simple 2.5D designs straight from SketchUp to our control software. Since the .cnc files are text files you can usually just rename the extention to what ever your machine prefers. Be sure to look though the help file to find out all the hidden features and context menus for more control over the gcode creation.
It's been around for years and works very well. Also has and active community around it between OpenBuilds and the Phlatforum
Hope this helps
Mark C -
Hi guys im new at here, my name is marcus from indonesia
i need some help, i open a small workshop of cabinet
Please help me if you knew these :- How to export drill holes of cabinet for cnc cut and drill with one spindle?
- Is there any tools to make holes of drill holes of each panels of a cabinet?
- Which cnc program is easy to save my cutting list with drill holes?
Best regards
Marcus
-
Are you looking for a tool to create a dxf file or are you looking for G-Code complete with tool paths?
-
At the beginning, tell us what you CNC machine.
Robert
-
I'm in the same problem, i worked since few weeks in the design office of my company (be there since months as a woodworker, but my self-knowledge in 3D helped me to level up) and they use to work before with rhino and alphacam, now they are on topsolid, a software i personnaly hate with the power of 1000 suns.
We do furnitures to make interior fitting for professional vehicle (plumber, electricity, cleaning, etc...) with 15mm plywood.
Nothing very complicated, everything can be done in minutes in sketchup, then with the help of the bool tool plugin you can cut the back of the furniture to fit to the side of the vehicle.
Since TopSolid is in the process, we never have so much delay, this software is a pain in the ass, nothing works, or it works on his manner, or it randomly work, there is everytime a problem somewhere that takes minutes to resolve for an experienced employe, from the modeling to the cnc part.We use 2 morbidelli cnc, SCM. I actually search very hardly (i didn't sleep since 2 days ) to find how to put sketchup in the workflow and eliminate TS as fast as possible.
But it has to achieve this three needs :
- quick to model and to modify (sketchup and dynamic made it)
- "normally" easy to export for cnc (it has to be as difficult as professionnal software, not much)
- we need relation between the nesting and the layout to make the mounting scheme with numbered parts
There is so much talks about this and sketchup, the community is so big that it becomes difficult to know where to search ! As far as i search, i saw nobody with that kind of needs
Do you have an idea, oh great sketchUcation community ?
ps : sorry for my english
Advertisement