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

Phlatscript Version 0.924 Chat

Discussion in 'SketchUcam DOWNLOAD' started by kram242, Nov 10, 2010.

  1. Cboogs95

    Cboogs95 New Member

    Offline
    Messages:
    3
    Trophy Points:
    1
    So I have downloaded SKU8 and unzipped the phlatscript file. Do I place the whole folder in the plugins folder or just the .rb files?

    Thanks
     
  2. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    The whole folder. And it goes into the Tools folder not into the Plugins folder.
     
  3. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    quote="Offerd15, post: 34541, member: 12787"]I'm trying to get the new code that prevents retracts between multipass cuts but it doesn't seem to have been included in the latest zip file. It says there should be a new dictionary entry but it is not in the file. A have tried adding the entry into the Constants.rb file but it still didn't appear. Any help would be greatly appreciated. I've been looking forward to this and I'm very eager to get it working.[/quote]

    sorry for the delay, chaos hereabouts...

    To use the new code you need to first have SketchUcam 1.0 installed and working, then unzip the new code according to the instructions in the post at 34443 ensuring you put the new files in the correct folders and overwrite the old files.
     
  4. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Mark, have you used this to actually cut anything yet? if so, how did it go? I havn't had a chance to do cut tests yet and am keen to hear some feedback on actual cuts in foam, balsa and plywood. Just to make sure I'm on the right track.... hoping to get some machine time this weekend and see for myself but I really do need input from folks who have different machines etc.
     
  5. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Hi Swarfer,
    I have not had the chance yet. We have been super busy here but as soon as I can break away I will give it a try and let you know how I make out. It may take me a little while as we are trying to finish up the Kickstarter rewards and pre-orders for OpenBuilds as well as working on the website.
    So anyone who can please help out by testing a few of these cuts so that swarfer can trouble shoot if need be. Thank guyz
    Mark and Trish
     
  6. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    oops, I discovered a bug in the MyConstants.rb handling.
    If you install SketchUcam you get the old Constants.rb
    If you follow my install instructions for the new version, you will copy that to MyConstants.rb
    before installing the TRUEPLUNGE version, and ALL WILL BE WELL.

    However, if you install TRUEPLUNGE and then copy Constants.rb to MyConstants.rb, Sketchup will refuse to load.

    To fix, edit MyConstants.rb and remove the lines
    Code:
    myc = Sketchup.find_support_file( 'Tools' ) + '/Phlatboyz/MyConstants.rb'
    if File.exist?(myc)
      res = load(myc)
    #  if res
    #    UI.messagebox("loaded myconstants")
    #  else
    #    UI.messagebox("found myconstants, but no load")
    #  end
    #else
    #  UI.messagebox('file not found ' + myc)
    end
    # $Id: Constants.rb 2 2013-05-30 09:31:01Z swarfer $
    
    from the end of MyConstants.rb

    If you don't, it tries to reload itself infinitely and Sketchup fails to start.
    There are other things that can be removed from MyConstants.rb too. I'll create some examples later today, and add some to the zip distribution too. I will also try to automate this fix, so the code figures itself out.

    BTW I discovered this issue when doing a clean install of Sketchup 8 + SketchUcam + TRUEPLUNGE. Everything worked properly until I created MyConstants.rb so I could set metric defaults. However, it would be easier if it did not require the user to find the correct folders :)

    newfix 22 july : in Constants.rb replace
    Code:
    myc = Sketchup.find_support_file( 'Tools' ) + '/Phlatboyz/MyConstants.rb'
    if File.exist?(myc)
      res = load(myc)
    #  if res
    #    UI.messagebox("loaded myconstants")
    #  else
    #    UI.messagebox("found myconstants, but no load")
    #  end
    #else
    #  UI.messagebox('file not found ' + myc)
    end
    
    with this code
    Code:
    res = __FILE__
    res = res.scan(/myconstant/i)
    if  (res.empty? )
      myc = Sketchup.find_support_file( 'Tools' ) + '/Phlatboyz/MyConstants.rb'
      if File.exist?(myc)
        res = load(myc)
      end
    end
    
    Now, if you copy Constants.rb to MyConstants.rb you do not have to remove anything for it to continue working since it detects itself and will not reload. I will release a new zip with this tomorrow so new downloads 'just work'.
     
  7. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    good news is I got some time on the big router and cut out some airplane parts with good success.
    did not get time to test the new hole plunge code though. but did fix the myconstants bug, as above.
     
  8. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    also see my later posts about a bug in Constants.rb
     
  9. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    Guys, looking for a downloadable version of Phlatscript that has the plunge depth control. I'm not getting punch-through on my plunge holes, even though cut depth is correct.
     
  10. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    the 34443 in my previous post is the link to the download. but, my plunge depth modification is really for doing part depth holes, but it does work for increasing the plunge depth, I just tested it. so if your normal cut depth is 110%, when you select the plunge tool you can enter 140% and get a hole that 'deep'. You will need to reset the depth for each hole since is does not remember what you set.

    edit: and thinking about it, could it be that the bit is not reaching the depth because G64 is in effect? G61 will force all moves to arrive at the designated co-ordinates, at the expense of speed. G64 will allow a tolerance on positioning, and thus allow a plunge to stop short of the given depth.
    If you don't see G61 at the top of your Gcode files, you can set it in Constants.rb (or MyConstants.rb after you install the TRUEPLUNGE extentions)
     
  11. A_Lokhorst

    A_Lokhorst New Member

    Offline
    Messages:
    2
    Trophy Points:
    1
    Hello Swarfer,
    I am a little confused about the versions. You are writing about
    version 1.0? The latest version I can find is 0.924.

    Can you assist me in finding the latest version. I like to use your 'TruePlunge'
    modifications but I need to be sure that I am not patching the wrong version.

    Thanks in advance
    Aalt
     
  12. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    Aalt, v0.924 is the PhlatScript. v1 is the SketchUcam.
     
  13. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    I installed the TruePlunge version this morning and have been playing with it for a bit. Have a couple of issues that I am trying to work through without resorting to manually editing the code:

    If I understand it correctly, the center line cut setting no longer cycles using the "D" key as previous. I had a modified constants.rb file that let me step through a bunch of different preferred depths. Now, it just goes into data entry into the percentage field.

    The other issue I am having is the plunge depth seems like it cannot exceed the Overcut Percentage set in the parameters. I can get the plunges to undercut by entering a value and hitting <ENTER>. But, I cannot exceed the percentage overcut value.

    Thanks for taking the time to put this together, Swarfer. Glad to see the phlatscript is still getting some love. I'd like to suggest that this mod get its own thread to reduce the SNR.
     
  14. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    Oh and G61 was set to TRUE in my constants.rb file before.
     
  15. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    aha, I see the problem. on the old forum Phlatscript 0.924 became Sketchucam 1.0, when the forum software was replaced, 0.924 got posted as the download. same thing as Sketchucam 1.0 I believe. (and I'm sorta working on what we hope will be 1.1 sometime.) Maybe Mark can step in and edit the relevant posts so it is all clear?
     
  16. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    It does cycle, using the left/right arrow keys, and down arrow select 50%, on my Sketchup8 it displays this option in the status bar to the left of the percentage entry box. This is not something I have changed at all. Note that under TRUEPLUNGE you can put your custom settings in MyConstants.rb so that furture upgrades do not overwrite it.

    Now that is odd because in my test earlier today I could enter 130% when my default was 110% and it looked distinctly deeper in NCplot. I'll check the code tomorrow as I don't have the latest code here at home right now.

    I dunno. These mods are progress toward the next version so maybe a new thread for that is a good thing. But I'm quite happy keeping this all in one place, I'm already juggling this with the pockettool thread and a coupla others (-:
     
  17. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    Ahh, that explains it. I was used to an older version of Phlatscript (actually, a mod that Kwok made). In earlier versions, the way you cycle through the cut array was to use the "D" key. I've been using this version for a few years now, but I like the newer version that you modded better. Particularly completing the passes before moving to the next cut-much more efficient and accurate! Thanks!
     
  18. A_Lokhorst

    A_Lokhorst New Member

    Offline
    Messages:
    2
    Trophy Points:
    1
    Hello Swarfer and Yoram,
    Thanks for the explanation about the version numbers.
    First it was clear as mud for me but now I understand it.

    Aalt
     
  19. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Code said 'if user entered > cutdepth then clamp to cutdepth' and I have changed it to
    use 2*cutdepth. I don't think allowing unbridled cutdepth is good, drilling 600% into the cnc table is bad.

    I've been reconciling my 2 confused versions on this laptop, one under Sketchup 8 and the other SK7. Now I need to check this lot against my subversion server and make sure I've got everything sorted and then I'll release a new package with all the current updates, tomorrow.
     
  20. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    Looking forward to it. Thanks for grabbing the flag on the phlatscript!
     
  21. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    ToxicToast and others .... NEW version is posted in the post LINKED HERE just to try keep it all in one place and avoid multiple versions being available.
     
  22. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    That bug fixed in TRUEPLUNGE3 download.
     
  23. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    +1
     
  24. ToxicToast

    ToxicToast Down in the weeds. Staff Member

    Offline
    Messages:
    483
    Trophy Points:
    18
    Location:
    Roseville, CA
    Dude, that is sweet! Now I don't have to make 2 separate .nc files just to get sufficient punch-through on my g10 cuts! Thank you so much for these little enhancements!!!
     
  25. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    ah, G10. I think you might be the one to blame for me starting these mods if you were the one saying that the tab plunge rate doesn't obey the 'plunge rate' setting, a problem when cutting G10 with a 1mm bit. Well, I fixed that too :) really happy it is working for you. now, I really must go and 'build world' on the backup server...
     

Share This Page