Draw G-Code by Hand (Interested) ?? - Page 2


Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 71

Thread: Draw G-Code by Hand (Interested) ??

  1. #21
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Ok, for eveyone that can't open "SketchCode", I think what you need is the ".NET Framework Version 1.1" installed on your PC. Below is the link for the download, follow the steps on the download page.

    Object moved

    I'm not sure, but the "Windows Service Pack 2", might include the ".NET Framework", So you might go to the Windows Update site and just go ahead and update your computer first, restart your computer, then try my program. If that doesn't work then you might try that first step I mentioned (.NET Framework) It wouldn't hurt to update your PC either way.

    Object moved

    Let us know If any of this is a fix, or not.




    .

    Last edited by Switcher; 05-11-2014 at 05:26 PM.


  2. #22
    Member Halfnutz's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    750
    Downloads
    0
    Uploads
    0

    Default

    This is great, but it needs to be integrated into something to help with editing, so you can go back and forth between the g-code and a dxf or pgm file so that points could be specified exactly where needed. Or so you could add free hand work to an existing cad geometry.

    What youve got now though is awesome, even the way it is. Great stuff, please dont stop, I love it!

    I bet you could work this into Mach as a wizard nicely.

    Halfnutz


  3. #23
    Member
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    1220
    Downloads
    0
    Uploads
    0

    Thumbs up Problem solved.

    Downloaded and installed ".NET Framework Version 1.1" and now can run OK.
    Nice work...this program is looking very promising.
    I've written a few programs with VB6 and sometimes need to install some dll files.



  4. #24
    Registered
    Join Date
    Oct 2004
    Location
    USA
    Posts
    742
    Downloads
    0
    Uploads
    0

    Default

    I also downloaded and installed the .NET Framework Ver 1.1, and it is working.
    Thanks.

    It is looking good.



  5. #25
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Kiwi , CJL5585

    Thats great news from both of you, I'm happy the ".NET Framework Version 1.1" download, solved the problem. Thanks for the feedback, it really does help me out.



    I know a few members are interested with DXF support, being added to "SketchCode". For now I need to focus on getting some actual g-code out of the program. Maybe later on I can look into supporting DXF.

    When I first started this project, I was trying to mimic "MS Paint" with a little twist, that is to create g-code from a simple freehand drawing. Does anyone know of a program that does what I'm trying to do, with "SketchCode"?

    I think I've got the issue with the slow GDI+ drawing resolved, So now I can put some focus on getting the g-code correct, and save as a Text file. I won't post another example until I get a little more done on the g-code.


    Again, Thanks to everyone...




    .

    Last edited by Switcher; 05-11-2014 at 05:26 PM.


  6. #26
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    .


    This is my latest version of "SketchCode".

    First, I am not responsible for what you do with the g-code that "SketchCode" creates!

    So, I strongly recommend that you run the code thru a simulation program before you run the code on an actual cnc machine.

    Things Added:

    (1) You can "Save As..."
    (2) You can "Open..." (external .txt file)
    (3) Adjust "Scale"

    Note: I have a ways to go with Scale (of g-code) & Rotation. Some of the drop-down menus, are not enabled yet.

    For anyone that has trouble running "SketchCode", Look at Post #21
    Don't forget to press the "Finish Code" button at the bottom right-hand corner of the program, when your finished drawing , the button will finish out the g-code, M30 etc....


    Let me know what you think, good or bad.

    Attached Files Attached Files
    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  7. #27
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    .


    Just a couple of screenshots, the first one is "SketchCode".

    The second image is a shot of the g-code produced with "SketchCode" and simulated in NCPLOT v1.1 (which is a cool program)

    Attached Thumbnails Attached Thumbnails Draw G-Code by Hand (Interested) ??-sample_sketchcode1-jpg   Draw G-Code by Hand (Interested) ??-sample_sketchcode2-jpg  
    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  8. #28
    Registered
    Join Date
    Feb 2006
    Location
    Norway
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    Wery nice program!
    If its posibel to put in a bakground image that you can draw of some patern it wod be nice!
    The one thing i dont like is that you putt F in evry line makes it hard to edit the fed laiter.

    And i did some edits to show the start and ending I nead to run on the iso machin at work
    %
    ( SketchCode )

    N 5 G90 G00 Z=0.100
    N 10 G90 G00 X=0.000 Y=0.000
    N 15 X=0.121 Y=0.096 F75
    N 15 G01
    N 15 G00 Z=-0.100 F50
    N 15 G01
    N 20 X=0.122 Y=0.096 F75
    N 25 X=0.122 Y=0.097 F75
    N 30 X=0.123 Y=0.097 F75
    N 35 X=0.123 Y=0.098 F75
    N 40 X=0.124 Y=0.098 F75
    N 45 G00
    N 45 Z=0.100 F55
    N 50 G00
    N 50 X=0.000 Y=0.000 F150
    N 50 M30
    N 50 %


    %
    ( SketchCode )

    N1 G90
    N2 G00 X=0.000 Y=0.000 S6000 M3
    N3 Z=0.100
    N4 G01 X=0.121 Y=0.096 F75
    N 5 Z=-0.100
    N 6 G01 F50
    N 10 X=0.122 Y=0.096
    N 15 X=0.122 Y=0.097
    N 20 X=0.123 Y=0.097
    N 25 X=0.123 Y=0.098
    N 30 X=0.124 Y=0.098
    N 35 G00 Z=0.100
    N 40 X=0.000 Y=0.000
    N 45 M30
    %



  9. #29
    Member
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    1220
    Downloads
    0
    Uploads
    0

    Default

    Switcher......Looking good.
    I needed to edit the code by removing all the "=" with wordpad.
    Then able to backplot (Geometry from NC) onto the screen using BobCAD.



  10. #30
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Jakrro,

    Thanks for the suggestions, I'll change the Feed like you suggested (that would make edits faster).

    I was planning on adding an option, so you could have more than one background open at a time (kinda like a tabbed browser) with the drawing surface transparent.

    Lots of ideas




    .

    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  11. #31
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Kiwi,

    Thanks, looks like I need to make everything that goes into the g-code as an option for each item (Feed , = etc...) the program is still very rough.

    Keep up the good suggestions, I'm listening.





    .

    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  12. #32
    Registered
    Join Date
    Sep 2004
    Location
    USA
    Posts
    412
    Downloads
    0
    Uploads
    0

    Default

    From the other post where you linked me this program.

    I have a suggestion. Make it possible to import dfx, or converted gifs. With the cordinates already created.

    Now where your software comes in. You draw above the graphic and the codes highlight as you pass over them and create the order of events tool path.

    I hope that makes sense.



  13. #33
    Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    4230
    Downloads
    1
    Uploads
    0

    Default

    importing jpeg images to trace would be a great thing



  14. #34
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    .

    dertsap, & Deviant

    I already have a version of "SketchCode" that will allow you to open any "Bmp, Jpeg, Gif" file as a backgrond image that you can trace. It basically is 2 layers, you draw on the top layer, which is transparent. Thats how I did the "Flower" in your Post (Deviant):

    Link:
    http://www.cnczone.com/forums/diy-cn...uilting-2.html

    As far as DXF files, I'm looking in to that.

    I'll post the updated version of "SketchCode" here, as soon as I get things cleaned up a bit.

    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  15. #35
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    This is an updated version "Sketch2Code v1.30".

    Added:

    (1) You can now select to have a "Z-axis" or not.

    (2) You can open a background image ( BMP - JPEG - GIF )




    If you don't need the "Z-axis" uncheck "Add Z-axis" in the lower left corner of the screen. It is checked by defualt.

    If you would like to open a background image "Image|Open Background Image" After you are finished tracing the background image, you can close the image out by "Image|Close Background Image" so that you can see your image path. You can open or close any supported image as often as needed.

    I'm changing the name of this program to "Sketch2Code", The reason is I did a Google search, and found a Java application with the same name (SketchCode).

    Enjoy,








    Update:

    If you have a problem running this program, take a look at post #21.




    .

    Attached Files Attached Files
    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  16. #36
    Registered
    Join Date
    Sep 2004
    Location
    USA
    Posts
    412
    Downloads
    0
    Uploads
    0

    Default

    *shakes pompoms*

    You can do it switcher!! *grins*

    This should help me alot with the quilt project. I do have one question.

    Last night I was toying around with your program and drew out the pattern then saved the gcode to a text file and tried to import to ncplot.

    It gave me some error message like it didn't like the code that was generated.

    Do I need to do something else to the code?

    *Sorry I don't have the exact message, I'm at work atm*



  17. #37
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Hmmm.

    I've been working with the latest version of "NcPlot" with no problems at all. The code generated by my program is a plain old text file (.txt). It should work.

    Make sure you are not trying to open it with the "DXF" button under "File"

    In "NcPlot" make sure to open your ( .txt) file by "File"|Open File"

    If this doesn't help let me know.




    .

    Last edited by Switcher; 05-11-2014 at 05:27 PM.


  18. #38
    Registered
    Join Date
    Sep 2004
    Location
    USA
    Posts
    412
    Downloads
    0
    Uploads
    0

    Default

    I'll check it out when I get home.

    Pretty sure I was importing it correctly. But maybe I didn't.



  19. #39
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    Deviant,

    I'll check back in the morning, to see how things go. Gotta go to work.

    Anyone else, feel free to check out my program.

    Last edited by Switcher; 05-11-2014 at 05:28 PM.


  20. #40
    Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    4230
    Downloads
    1
    Uploads
    0

    Default

    thats pretty good
    now i just need to work on my mouse to eye coordination



Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Draw G-Code by Hand (Interested) ??

Draw G-Code by Hand (Interested) ??