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

Simple GCode plotter plugin

Discussion in 'SketchUcam Related Software' started by gasmasher, Sep 9, 2009.

  1. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    For a dollar.... ;)


    I will keep it in mind this weekend. It wouldn't be too much work with the current code.
     
  2. tvcasualty

    tvcasualty New Member

    Offline
    Messages:
    637
    Trophy Points:
    0
    You must know how to program :p It works in wine!
     
  3. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    This is too cool Tim nice job! For me it's great because all of my exported gcode goes over the network to the Phlatprinters computer, and then I have to open the code from Mach once I get there. This is way easier and it will be great for screen cast too so that people can see the output code..
    Thank you for sharing this :)
    Mark
     
  4. Evil-Tunes

    Evil-Tunes Moderator Staff Member

    Offline
    Messages:
    659
    Trophy Points:
    16
    Location:
    Southern N.J.
    I love this program would it be hard to make it able to zoom in and out or a sizeable window?
    Cheers
    E-t
     
  5. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    Thanks guys. I do plan to add editing of code (with refresh) and control of the window with the mouse. I really am trying to fix that old overlapping offset cut bug in the PhlatscripT first.
     
  6. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    You know what would be cool is if you could keep this window open to the side while you work on coding your parts in Sketchup it updates in real time! :D Or is that what you mean by the refresh?
    Mark
     
  7. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    I meant the refresh that TigerPilot wanted. The ability to edit the gcode in the plugin and then click refresh to display the results.

    The realtime update would be a bit more work because you would have to force the gcode to be generated every time you made a cut with the script. That could seriously slow down your work.
     
  8. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    I like the refresh idea better if it keeps down on processing time :)
    Mark
     
  9. meistertek

    meistertek Member

    Offline
    Messages:
    318
    Trophy Points:
    16
    Location:
    Chicago, IL
    Thanks Gas Masher! I tried this out and it worked great on my system: Windows XP Home
     
  10. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    I noticed that other people are having problems in 64 bit windows due to the path in GPlot.rb. If someone can PM me the modified rb file they are using with 64 bit windows I will make it a little more intelligent and check all the appropriate folders for the dll.
     
  11. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Here you go Tim
    That would be great
    Thank you
    Mark
    Attached files GPlot.rb (848 B)Â
     
  12. 7up

    7up Moderator Staff Member

    Offline
    Messages:
    1,090
    Trophy Points:
    38
    Location:
    Kentucky
    Tim, do you ever sleep? :D

    I love the plugin. Anyway I can edit the "rb" file to make the plot lines green? I can't see the red very well, or does that have to be done in the dll file?
     
  13. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    I do sleep, that's why I keep my day job ;)

    There is no way to change the color of the lines right now since all the work is done in the dll. I'll see what I can do this evening to add a color selection option and work on the rotation with the mouse.
     
  14. 7up

    7up Moderator Staff Member

    Offline
    Messages:
    1,090
    Trophy Points:
    38
    Location:
    Kentucky
    Glad you get some sleep at work cause I know we keep you busy here on the forum. :D
     
  15. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    I uploaded a new version that is an executable instead of a dll. You can use it as a standalone program and continue to use it from the plugins menu in SU. Download 1.2 from the first post in this thread.

    The new version lets you pan with the left mouse button, zoom with a scroll wheel, and rotate by holding the middle button. I still have to do some work on these features for people without a scroll wheel. It is a little weird when rotating since it is around the origin and not the middle of the screen but this is my first 3D application and still learning.

    You can change the colors of the cut lines by setting them in the Settings | Colors dialog. If you lose track of the drawing in the window just use the Settings | Reset menu and it will bring it back to where you started.

    I added a shortcut to GPlot.exe in my Send To folder (c:Document and Settings<user>Send To) and can right click any gcode file and use the Send To submenu to open it.
     
  16. firetrappe

    firetrappe Member

    Offline
    Messages:
    192
    Trophy Points:
    16
    Location:
    England UK
    Very nice Tim, I've just tried it out and it seems to work perfectly to me. Thanks again for giving us these new 'toys', Google will be headhunting you soon for their dev team :D

    Si.
     
  17. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
    Wow Tim!
    You outdid yourself on this 1.2 version.
    It way surpasses the last version.
    I like how it can be a stand alone program too.

    I like this better than the NCplot program I was using. It feels very similar to the viewer within Mach.

    Great job!
     
  18. frankrcfc

    frankrcfc New Member

    Offline
    Messages:
    381
    Trophy Points:
    0
    Location:
    Battle Creek, Mi
    Just tried the plugin. Nice addition to Sketchup. Definitly a must have. Thanks Gasmasher ;)
     
  19. 7up

    7up Moderator Staff Member

    Offline
    Messages:
    1,090
    Trophy Points:
    38
    Location:
    Kentucky
    Great job Tim! Very compact and perfect for checking your output code, saves a lot of time from having to start up Mach just to have a look. Thnks for the ability to change colors, that was the icing on the cake.

    You da man!
     
  20. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    Thanks guys, I really appreciate the comments. I didn't intend to make it this functional but it's been fun learning OpenGL and I kind of got hooked. I'm going to add the ability to edit the G code on the left side and reflect the changes in the drawing for the next version.
     
  21. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    I have my system on the d:/ drive. It was selected by Widows when I installed it and not by me.

    The new program doesn't work for me. Neither free standing nor in SU. When I run it I get an error message: 'access violation at address 1070DE1A in module s3gIGPgl.dll read of address 00000068.'. When I click 'OK' in stand alone I get another error message 'need number in row 8'. In SU I don't get this message. In either case the program is gone from the screen but not from the system. It slows the system down to a crawl and I have to go to Widows Task Manager to close it and free the system. If I click on the .exe file again, before removing it from the Task Manager, I have two instances of the program running in the Task Manager.
     
  22. 7up

    7up Moderator Staff Member

    Offline
    Messages:
    1,090
    Trophy Points:
    38
    Location:
    Kentucky
    Tim, I don't have a "Send To" folder here --> (c:Document and Settings<user>Send To) which is (c:Document and SettingsTylerSend To) nor do I have one here --> (c:Document and SettingsAll UsersSend To). Do I need to create a "Send To" folder or might it reside in a different directory?

    Win XP Pro
     
  23. gasmasher

    gasmasher New Member

    Offline
    Messages:
    402
    Trophy Points:
    0
    Location:
    Atlanta, GA
    TigerPilot, I've been searching around and the only suggestion I see is to make sure your video driver is updated. I am going to look over all the changes I made and see if I can find the culprit. Unfortunately I don't have a machine with VIA S3 graphics for testing. In the meantime I left the original download in the first post.

    7up
    , I always forget that the Send To folder is hidden by default. You can turn on hidden files and folders by opening Windows Explorer (file browser) and selecting Tools | Folder Options. Check "Show Hidden Files and Folders" on the View tab and click OK. The folder will now be visible and you can create the shortcut. It is OK to change the setting back after you have made the shortcut.
     
  24. tvcasualty

    tvcasualty New Member

    Offline
    Messages:
    637
    Trophy Points:
    0
    100% functional in Linux under Wine. Thanks Tim, you the man!
     
  25. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    It is the latest driver, Tim. I had no problem with the first version. It displayed fine.
     

Share This Page