1. Hey guyz. Welcome to the All New Phlatforum!



    Sign Up and take a look around. There are so many awesome new features.

    The Phlatforum is a place we can all hang out and

    have fun sharing our RC adventures!

  2. Dismiss Notice

Pocket tool ?

Discussion in 'SketchUcam Help' started by xtremeRCpilot, Jun 16, 2010.

  1. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Hey guys, I am trying to apply pockets to some lettering and regardless to what I set my parameters box to via bit size ( in this case 1/32", it is trying to apply an 1/8" bit or .0625 between lines. Is there a way to set the default?
    Thank you
    John
     
  2. Klondar

    Klondar Member

    Offline
    Messages:
    75
    Trophy Points:
    6
    You have to edit the pockettool.rb script file

    Near the top, find this:

    class PocketTool

    def initialize
    @bit_diameter = 3.175.mm <- Change the to the size you need.

    I think it has to be in mm to work though.
     
  3. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Awesome!!! Thank you Klondar, it worked perfect!! :) I got an error at first so any one going to change the decimal to sub 1mm increments, remember to put a" 0 "before the decimal!! In other words in my case instead of .745 it should be 0.745.mm !! :cool:

    Thanks again!
    John
     
  4. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Nice find guys thank you for sharing this, I have been wanting to do this too :D
    Mark
     
  5. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Hey guys, is it uncommon for the pocket tool/PhlatScript to register some of the line segments as individual line, in other words when i assign the code to the pocket when it cuts, some of the lines cut with a plunge as if seeing individual lines and then others will cut as if a continuous line! I am cutting out letters and it does the pocket perfect either way :)

    Thanks
    John
     
  6. Jnida63

    Jnida63 Member

    Offline
    Messages:
    749
    Trophy Points:
    18
    I tried using that script and didn't have much luck with it, I just use the offset tool and make my own pockets, I'm not even sure how to set the depth on the pocket tool.
     
  7. Jnida63

    Jnida63 Member

    Offline
    Messages:
    749
    Trophy Points:
    18
    Here is how I do mine, takes seconds really.
    I did it at half inch offset for ease of viewing.
    Remember the outside box does not get any phlatlines attached to it or your pocket will be oversized. Attached files [​IMG] [​IMG] [​IMG] [​IMG]
     
  8. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Thanks Jeff, The pocket tool works best on perfect symmetrical shapes like a circle or triangle but when you do obscure letters or shapes it is very random how it assigns the lines.
    I set a pocket and go back and fix all the weird lines it assigns.
    Remember you dont have to set the depth of the pocket but when you assign the G code with the centerline tool this is when you make your depth selection!!
    I do enjoy this tool but there is some extra work needed to get the lines just right!! :D

    As far as my letters, it cuts the pocket fine but some of the lines cut individually where the Z moves in and out and others cut properly as if seen as one continuous line, if this makes any sense LOL :D


    John

    here is a zoom in of my "S" Attached files [​IMG]
     
  9. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Nice idea Jeff!! :)



    Here is a pocket as when used with the pocket tool for a square!! Attached files [​IMG]
     
  10. Klondar

    Klondar Member

    Offline
    Messages:
    75
    Trophy Points:
    6
    you may need to select all the lines and use the weld tool to make them one continuious line.
     
  11. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Thanks Klondar :) You always have the answers!! Why didnt I think of this :p
    I will give it a try and do a trial print in mach to see the results!

    Thanks again!!
    John
     
  12. Klondar

    Klondar Member

    Offline
    Messages:
    75
    Trophy Points:
    6
    Glad to be able to help,

    And for the odd shapes that seem to always want to jump outside the selected face, try using the offset tool first and doing a very small offset .0001 works then reselect the face and in most cases the problem wont re-appear.

    -Glen
     
  13. kyyu

    kyyu Active Member

    Offline
    Messages:
    1,183
    Trophy Points:
    36
    Location:
    Maryland
    Very interesting. Looks like the offset tool reordered the direction of the edges. But try my modified version of the Pocket tool, which shouldn't have that problem: viewtopic.php?f=103&t=2064

    -Kwok
     
  14. xtremeRCpilot

    xtremeRCpilot Member

    Offline
    Messages:
    736
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Ok I ended up zooming in on the code when viewing "plot g-code and found a weird thing going on.... I could see very small red line segments at the start of some of the lines, in other words where ever I was having issues with my pocket cuts making individual segments, there would be a .25 plunge line at the beginning of some of the lines and then it would start a continuous to finish the pocket, does this make sense :)
    Now when I checked the SKP file there was nothing above the flat plane so I decided , to use the phlatten to 2d and when I re saved the file PERFECT :D
    So I looked over the file and see some of the other starts on different pieces have these little red start lines on the z axes very strange!! maybe just a bug .....
    Thanks for your help guys!
    John
     

Share This Page