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

SANDBOX - Please post your PhlatscripT bugs

Discussion in 'SketchUcam Bugs' started by kram242, Jan 17, 2009.

  1. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    While I like the look of the dialog-box that we have now better than the new version, if it helps other people with their problem, I can live with the new (and way older) look.
     
  2. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    No problem. It will now be a configuration option. If you have problems with the dialogs just set $use_compatible_dialogs to true, inside Constants.rb, and it will use the old looking dialogs.
     
  3. tvcasualty

    tvcasualty New Member

    Offline
    Messages:
    637
    Trophy Points:
    0
    **sigh** I love open source! :D
     
  4. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
    Hey Gas,
    Great job! It doesn't really affect me (windows), but I think it's great being able to have the option.
     
  5. kneedrag

    kneedrag Member

    Offline
    Messages:
    57
    Trophy Points:
    6
    Hi there,

    I am sure I am missing something silly.

    I have downloaded the latest Phlatscript. 0.918 I have looked inside the Constants.rb file for the $use_compatible_dialogs = true line which was not there. So I have added it to the end of that file however I am still getting the following screen when I try open the parameters box.

    Yes they have been run via dos2unix... I know it is going to be something stupid I am missing I can feel it I just can't see it. ;-) Any help appreciated. Attached files [​IMG]
     
  6. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    You only missed one small detail. That flag will be available in the next version of the script. PM me and I will help you get this running under Wine until the next version is available.
     
  7. kneedrag

    kneedrag Member

    Offline
    Messages:
    57
    Trophy Points:
    6
    Thanks gasmasher, PM'ed you.. ;-)
     
  8. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    Still catching up on messages after being away. I sent the instructions to get you up and running. Let me know how it goes.
     
  9. rbrown3rd

    rbrown3rd New Member

    Offline
    Messages:
    12
    Trophy Points:
    0
    Is there a guide for installing in OSX on the Mac?
     
  10. janbjorn

    janbjorn Member

    Offline
    Messages:
    130
    Trophy Points:
    18
    Location:
    Sweden
    I'm getting an interesting error in my g-code. Each segment of an arc becomes a full circle in the g-code. See attached pics and .skp

    Attached files Arc-problem.skp (74.6 KB)Â [​IMG] [​IMG]
     
  11. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    For some reason the arc on the right is using the wrong arc gcode (g2 vs g3). I loaded your file and just generated the gcode and it appears to be OK. Can you walk through the steps you used so I can recreate the problem? Working in mm is also not completely supported right now and can cause some problems like this.

    Here is the code that I get when I load your sample and generate the gcode without making any changes. Notice that both arcs use G2 and I bet your code has a G3 for the one on the right.[pre]%
    (Generated by PhlatscripT {trunk})
    (File: Arc-problem.skp)
    (Bit diameter: ~ 3.2mm)
    (Feed rate: 100)
    (Material Thickness: ~ 6.3mm)
    (Material length: 540.0mm X width: 1150.0mm)
    (www.PhlatBoyz.com)
    G90 G20 G49
    M3 S8000
    G0 Z 0.050
    X 5.774606 Y 7.623223
    G1 Z -0.350 F 100
    Y 18.396216
    X 11.155142
    G17 G2 X 11.940913 Y 18.335754 Z -0.350000 R 12.535346
    X 12.708669 Y 18.155681 Z -0.350000 R 12.535346
    X 13.439839 Y 17.860273 Z -0.350000 R 12.535346
    X 14.117209 Y 17.456484 Z -0.350000 R 12.535346
    X 14.724832 Y 16.953822 Z -0.350000 R 12.535346
    X 15.248404 Y 16.364120 Z -0.350000 R 12.535346
    X 15.675597 Y 15.701261 Z -0.350000 R 12.535346
    X 15.996355 Y 14.980852 Z -0.350000 R 12.535346
    X 16.203126 Y 14.219851 Z -0.350000 R 12.535346
    X 16.291042 Y 13.436176 Z -0.350000 R 12.535346
    X 16.258033 Y 12.648277 Z -0.350000 R 12.535346
    X 16.105315 Y 11.876918 Z -0.350000 R 12.535346
    G1 Y 7.623223
    X 5.774606
    G0 Z 0.050
    X 19.269161
    G1 Z -0.350 F 100
    Y 11.876918
    G17 G2 X 19.116443 Y 12.648277 Z -0.350000 R 12.535346
    X 19.083434 Y 13.436176 Z -0.350000 R 12.535346
    X 19.171350 Y 14.219851 Z -0.350000 R 12.535346
    X 19.378121 Y 14.980852 Z -0.350000 R 12.535346
    X 19.698879 Y 15.701261 Z -0.350000 R 12.535346
    X 20.126072 Y 16.364120 Z -0.350000 R 12.535346
    X 20.649644 Y 16.953822 Z -0.350000 R 12.535346
    X 21.257267 Y 17.456484 Z -0.350000 R 12.535346
    X 21.934638 Y 17.860273 Z -0.350000 R 12.535346
    X 22.665808 Y 18.155681 Z -0.350000 R 12.535346
    X 23.433564 Y 18.335754 Z -0.350000 R 12.535346
    X 24.219334 Y 18.396216 Z -0.350000 R 12.535346
    G1 X 29.599870
    Y 7.623223
    X 19.269161
    G0 Z 0.050
    G0 X0 Y0
    M05
    G0 Z0
    M30
    %
    [/pre]
     
  12. janbjorn

    janbjorn Member

    Offline
    Messages:
    130
    Trophy Points:
    18
    Location:
    Sweden
    No, the ones on the right also has G2 code. see below.

    It seems that I get this problem for all arcs where the right endpoint of the arc has a higher Y value than the left endpoint.

    [pre]%
    (Generated by PhlatscripT {0.921})
    (Bit diameter: 1,6mm)
    (Feed rate: 100)
    (Material Thickness: 6,0mm)
    (Material length: 540,0mm X width: 1150,0mm)
    (www.PhlatBoyz.com)
    G90 G20 G49
    M3 S8000
    G0 Z 0.050
    X 5.774606 Y 7.623223
    G1 Z -0.236 F 100
    Y 18.396216
    X 11.155142
    G17 G2 X 11.940913 Y 18.335754 Z -0.236220 R 12.535346
    X 12.708669 Y 18.155681 Z -0.236220 R 12.535346
    X 13.439839 Y 17.860273 Z -0.236220 R 12.535346
    X 14.117209 Y 17.456484 Z -0.236220 R 12.535346
    X 14.724832 Y 16.953822 Z -0.236220 R 12.535346
    X 15.248404 Y 16.364120 Z -0.236220 R 12.535346
    X 15.675597 Y 15.701261 Z -0.236220 R 12.535346
    X 15.996355 Y 14.980852 Z -0.236220 R 12.535346
    X 16.203126 Y 14.219851 Z -0.236220 R 12.535346
    X 16.291042 Y 13.436176 Z -0.236220 R 12.535346
    X 16.258033 Y 12.648277 Z -0.236220 R 12.535346
    X 16.105315 Y 11.876918 Z -0.236220 R 12.535346
    G1 Y 7.623223
    X 5.774606
    G0 Z 0.050
    X 19.269161
    G1 Z -0.236 F 100
    Y 11.876918
    G17 G2 X 19.116443 Y 12.648277 Z -0.236220 R 12.535346
    X 19.083434 Y 13.436176 Z -0.236220 R 12.535346
    X 19.171350 Y 14.219851 Z -0.236220 R 12.535346
    X 19.378121 Y 14.980852 Z -0.236220 R 12.535346
    X 19.698879 Y 15.701261 Z -0.236220 R 12.535346
    X 20.126072 Y 16.364120 Z -0.236220 R 12.535346
    X 20.649644 Y 16.953822 Z -0.236220 R 12.535346
    X 21.257267 Y 17.456484 Z -0.236220 R 12.535346
    X 21.934638 Y 17.860273 Z -0.236220 R 12.535346
    X 22.665808 Y 18.155681 Z -0.236220 R 12.535346
    X 23.433564 Y 18.335754 Z -0.236220 R 12.535346
    X 24.219334 Y 18.396216 Z -0.236220 R 12.535346
    G1 X 29.599870
    Y 7.623223
    X 19.269161
    G0 Z 0.050
    G0 X0 Y0
    M05
    G0 Z0
    M30
    %
    [/pre] Attached files [​IMG]
     
  13. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    Hmm, except for the Z values the gcode you posted is the same as mine. I opened your code in EMC2 and it appears just like the SU model, two boxes with a rounded off corner. I will try a few more tests but I can't seem to recreate it right now.
     
  14. kyyu

    kyyu Active Member

    Offline
    Messages:
    1,183
    Trophy Points:
    36
    Location:
    Maryland
    janbjorn's gcode simulates fine in ncplot, also. Maybe it's a bug with the NCSim program he's using to simulate.

    Attached files [​IMG]
     
  15. janbjorn

    janbjorn Member

    Offline
    Messages:
    130
    Trophy Points:
    18
    Location:
    Sweden
    Oh, I never thought about there being a problem in NCSim. I will investigate some more...
     
  16. jawatim

    jawatim New Member

    Offline
    Messages:
    1
    Trophy Points:
    0
    The 0.921 version of the Phlatscript seems to have problems making G-code for gears generated by the gear.3.rb plugin. The gear has a 3.175mm diameter plunge cut in the center.

    The gear I used was ungrouped and everything, but the G-code generated always ends up with only the plunge cut and the starting position for the outside cut.

    However, any other object works fine.
     
  17. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    This is probably due to the offset bug that everyone has been working around. If you zoom in close do you see the orange outside cut line overlapping itself between the gear teeth?

    Could you post a Sketchup file with a sample of the problem part? There has been a lot of progress on the bug and I would like to try the development version of the script on your sample.
     
  18. rjarois

    rjarois Moderator Staff Member

    Offline
    Messages:
    1,263
    Trophy Points:
    36
    Location:
    royal oak, michigan
    made a celtic cross for my sister for her christmas tree....i programmed and cut it out..everything came out good but one cutout...i went back and double checked the draw file thinkin i forgot to add inside cut...but i didnt forget nothing...i just took a jack knife to it so i can give it to her...randy.
    [​IMG]
    [​IMG] Attached files celticcross.skp (349.9 KB)Â
     
  19. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
    Hey Randy,
    I found out why it didn't produce the inside cut for you.
    I attached a screenshot to show you.
    Basically when you imported the dxf in it didn't have the cleanest lines. In that one section you could just delete part of the lines causing the problem and then redo the cut line and it would produce the white face and work for ya.
    Tim's new algorithum in the .922 script works on most of these kind of things but once and a while it can't fix them all.
    Hope this helps. Attached files [​IMG]
     
  20. rjarois

    rjarois Moderator Staff Member

    Offline
    Messages:
    1,263
    Trophy Points:
    36
    Location:
    royal oak, michigan
    shaun, i didnt import nothing....heck i dont even know how to import a dfx file...i drew this thing from nothin...also my screen shot of the thing does not look like yours. none of this makes sence to me right now, lols.
    [​IMG]
    [​IMG]
     
  21. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Randy I think the reason that you are not seeing the cutouts is because you have the no texture selection on.
    Try going to View>Toolbars>Face Style to show your face selections.
    That should bring up a new set of tools to allow you to switch between the faces (wire frame,textured, no texture, etc)
    I am thinking that you have the one that I circled in the picture selected. You need to select the one next to it to see the 'cutouts' of your design.
    Let me know if it works for you.
    Why is that cut out so fuzzy? Could it be since you flipped the gantry that your inside and outside cuts are going the wrong way now for the rotation of the bit?
    Randy that is a great design for doing it from scratch! Nice work!
    Mark
    p.s. You can move the toolbars anywhere you want on the screen by grabbing the little line to the left of each set. You can even drag them out into the work window and back into the bar itself.
    Attached files [​IMG]
     
  22. Jnida63

    Jnida63 Member

    Offline
    Messages:
    749
    Trophy Points:
    18
    Looks like your inside faces need reversed, your cut out example shows a lot of fuzzy edges. There looks to be a ton of extra lines in the lower portion of the drawing also. They could cause you problems and they did for me.
    Inside faces should turn white when you apply an inside cut to the or the bit runs the wrong way on the cutout causing fuzzy/jagged edges.
     
  23. rjarois

    rjarois Moderator Staff Member

    Offline
    Messages:
    1,263
    Trophy Points:
    36
    Location:
    royal oak, michigan
    ok fellas, thanks for the help....man this end of the printer drives me nuts, i have no experience with it...im a total noob with the programming side...i just got to drop it now, man i will make myself crazy by struggling with it...i will try later. thanks randy.
     
  24. kyyu

    kyyu Active Member

    Offline
    Messages:
    1,183
    Trophy Points:
    36
    Location:
    Maryland
    There is something going on, that is strange. I generated the g code from Randy's sketchup file and that inside cut was not there, like Randys said. But I simply ungrouped (exploded) it and the inside cut was now in the g code. I grouped the whole then again and the inside cut was still there, unlike the orginal.

    -Kwok
     
  25. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    I think you hit the nail on it's head, Kwok. While I don't know what Randy did, I think he grouped it and then noticed he forgot the one spot and did it. That may leave the cut out when making the G-code
     

Share This Page