[Plugin] 2.5D CAM Plugin 20121202
-
I keep getting this error:
Safety height is lower than top of part. Please correct.
-
What is the thickness of your part and what safety height did you set? I put a comparison in the code that checks the part thickness (bounding box size) against the safety height. If the safety height (which is measured from the table top X/Y plane or Z 0) is lower than the part thickness, the message pops up. I put this in because I can't tell you how many times I changed the part thickness and forgot to change the safety height. I've ruined quite a few pieces of MDF.
jgro
-
Awesome!
I've been wanting to do a CAM plugin for a long time, just never got to it.
I tried it on Mac, didn't work, but I'm fixing it.
It was looking for my default text file, which of course doesn't exist since I never ran it, so it's stuck. Like I said I will debug on Mac and keep you posted.Michael
-
@crash5050 said:
I keep getting this error:
Safety height is lower than top of part. Please correct.
Are you working in mm? This version is inches by default, and the default safety height is 1 inch.
So unless you enter a safety higher than your part it won't work. If working in mm and the part is let's say 40mm high, it requires a 41 inches default. -
I cant save the gcode. There is no save window.
-
Unable to get anything the generate code sceen. No warnings, just blank results....
Tried a simple square and grouped it, No action after clicking OK in the Gcode Screen..Tried several basic primitive shapes and grouped.
Any Idea?
Thanks, -
Same as above, looks like it makes some passes. But no popup save window. This is from the ruby console
C:/Program Files/Google/Google SketchUp 7/Plugins/CNC-profile_v02.rb:833:in `call'
(eval):892Thanks,
Scott -
Ok, I must be doing something wrong.
- I went out to 3d warehouse and grabbed a hutch that I want to cut on my CNC. http://sketchup.google.com/3dwarehouse/details?mid=792d164e6a059ae8958113d6831abae2&prevstart=0
I Imported it into Sketchup, and selected all and made it a group amdI still keep getting this darned error. Am I doing something that is impossible?
-
Hi. Interesting plugin. So? no more support for it? I have the same problem as the guys above.
No save window appears. thank you in advance. -
I need more details. Do you have the ruby console open? What does it say when you run the plugin.
jgro
-
Hi Joel,
I gave your plugin a try and I seem to be getting the same result. No Save window. I also don't seem to see the tool path as you show in your images, either. Here are some screen shots for you.
the setup. Note that Units is set to Decimal and units aren't displayed. The thing is a group.
Immediately after running the plugin. No save option.
And the same in X-ray. -
I just uploaded the latest version V03. (look at the first post) Give that a try. It has been changed to work for english and metric units and it should work on macs. (Special thanks to MichaelV for helping me with that!) Hopefully this should fix the problem. If not, upload the .skp file here and I'll take a look at it.
jgro
-
Joel, I tried the latest version. Still no Save box. Here's the dump from the Console.
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
2
Error: #<NoMethodError: undefined method
offset' for #<Sketchup::Face:0xab8d4cc>> C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:712:in
inside_offset'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:655:ineach' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:655:in
inside_offset'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:215:inmode' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:72:in
activate'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912:in `select_tool'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912This time the green face displayed at the bottom instead of the top.
Another odd thing is that unticking the visibility box for the 'path' layer makes no change.
I would like to also suggest that when the path layer is created it is not made as the active layer. Layer 0 should remain active. And it would be nice if the .rb file kept the same name through version changes so installing a new version just overwrites the old.
Thanks for taking a look at this.
-
Looks like you need '
offset.rb
' in the Plugins folder - it's freely available from http://Smustard.com ... http://www.smustard.com/script/Offset
That file should also have a 'require' at the start of your script's code, as it needs to loaded before the script... -
I thought I had that file installed already from long ago. It is now and I get the following:
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
Error: #<NoMethodError: undefined methodtypename' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:164:in
find_bounds'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:71:inactivate' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912:in
select_tool'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912 -
OK, I added "require 'offset.rb' to the plugin and uploaded as V.04. (Thanks for the catch TIG!). I also renamed the plugin back to CNC-profile.rb so you can just load it over the top of what you have in your plugins folder. The version number will still exist in the plugins menu.
Quote "I would like to also suggest that when the path layer is created it is not made as the active layer. Layer 0 should remain active." The path layer is set active during the geometry creation and at the end of the plugin the active layer gets changed back to the default layer. You never got to the end of the plugin, so it never got the chance to change it back to the default layer.
Quote "C:/Program Files/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
Error: #<NoMethodError: undefined methodtypename' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:164:in
find_bounds'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:71:inactivate' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912:in
select_tool'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912"Try deleting the CNC_Profile_Defaults.txt from the CNC_files folder in your plugins folder. It should create a new one when you run the plugin. See if that helps.
jgro
-
@Dave...
That part of the code is checking that the first item in the current selection is a group.
Unfortunately if there's no selection that 'nil' and that has no .typename...
There are better ways yo check what's selected, if anything is...To get it to work as it is... make sure you have something selected before using the tool, and ensure that it's a group...
-
I'll try deleting the TXT file and retry.
TIG, I did have the group selected before starting the plugin. I even made sure to make it a group even though I don't like to use groups.
-
Edit the .rb file with a plain-text editor like Notepad...
The line reads
if Sketchup.active_model.selection[0].typename != "Group"
Change it to read
unless selection[0] && selection[0].is_a?(Sketchup::Group)
This will at least get over that hurdle... -
I deleted the TXT file and tried running it. It worked! The script did give me the save box and I was able to save the file. Unfortunately it left the path layer as active when it completed.
I'll edit the rb file with your additions, TIG.
Another request: Could you set it to save to the same location as the SKP file? You could actually automate the save process giving the file the same name as the SKP file.
Edit to add:
I closed the SKP file without saving it and edited the text per TIG's instruction. Then re-tried it. It worked but I got the following in the console. Note the error message at the end.
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
2
2
2
2
2
Error: #<TypeError: can't convert nil into String>
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:ininitialize' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:in
new'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:ingcode_write' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:275:in
mode'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:72:inactivate' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912:in
select_tool'
C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912
Advertisement