copy post "GPX converter Gcode to X3G (makerbot)"

83 views
Skip to first unread message

funBart

unread,
Dec 18, 2013, 3:30:45 PM12/18/13
to kisslicer-r...@googlegroups.com

 Topic: GPX gcode to x3g conversion post processor for KISSlicer (beta available)  (Read 2026 times)

funbart

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    •  
    • Email
    •  
    • Personal Message (Online)
That's Makerbot firmware I assume.
I don't know which settings you use for it, but there is no reason Kisslicer pro wont work. Because pro uses two extruders I think you haven't set the Gcode fields right, resulting in Gcode as well x3g files the firmware doesn't understand.
Or maybe an override temp function set in the firmware?.


Maybe switch to Sailfish first:
I use Sailfish 7.5 and the belonging ReplicatorG 40r22 Sailfish edition http://jettyfirmware.yolasite.com/v75-v45.php


I have posted about it together with with some updated config files:
http://kisslicer.com/forum/index.php?topic=863.msg6411#msg6411


Bart
Modify message
Makerbot Replicator 1 dual
Minimalistic Mk8 replacement by Emmett
Sailfish Firmware
Kisslicer Pro 1.1.0 Alpha

gcioffi

  • Newbie
  • *
  • Posts: 3
    • View Profile
    •  
    • Personal Message (Offline)
Firmware is 7,2 mainboard

Printer whit replicator g40 is to print

Whit kisslicer pro gcode not work 

funbart

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    •  
    • Email
    •  
    • Personal Message (Online)
Hi gcioffi,
which firmware do you run on it? GPX ouput is x3g, used by the newest firmware of Sailfish for example.
Bart
Modify message
Makerbot Replicator 1 dual
Minimalistic Mk8 replacement by Emmett
Sailfish Firmware
Kisslicer Pro 1.1.0 Alpha

gcioffi

  • Newbie
  • *
  • Posts: 3
    • View Profile
    •  
    • Personal Message (Offline)
OK, here are the Windows builds of GPX, and the CodeBlocks project file I used.  These are untested, please let me know if I blew something up, and thanks for your patience!!

Jonathan


solution not ok  me printer duplicator 4 is not ok gcode , some problem .
Platform not heat is stop 24 c

Blown454

  • Newbie
  • *
  • Posts: 12
    • View Profile
    •  
    • Personal Message (Offline)
Strange coincidence possibly, but some other software implemented what I percieve is this same ability today?  This is the line that describes the addition in the changelog: "There is also a new ability to run post-processing tasks after the G-Code files have been written which allows us to automatically covert .gcode to .x3g for MakerBot printer owners."  The software is called Simplify3d.

Coincidence or is this the same code doing the conversion? Just curious if it was the same thing, thanks either way!

lonesock (Jonathan)

  • KISSlicer Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1042
  • Alibre -> KISSlicer -> RapMan 3.1
    • View Profile
    •  
    • The KISSlicer Website
    •  
    • Email
    •  
    • Personal Message (Offline)
OK, here are the Windows builds of GPX, and the CodeBlocks project file I used.  These are untested, please let me know if I blew something up, and thanks for your patience!!

Jonathan
* GPX32.exe (40 kB - downloaded 11 times.)
* GPX64.exe (54.5 kB - downloaded 21 times.)
* GPX.cbp (1.72 kB - downloaded 7 times.)
*A2TD : "Added to the ToDo list"

whpthomas

  • Newbie
  • *
  • Posts: 10
    • View Profile
    •  
    • Email
    •  
    • Personal Message (Offline)
Sorry my bad - didn't read that clearly enough.

So to replace stpncpy I made the following changes. I have reversed the previous alteration and have synced this commit with github https://github.com/whpthomas/GPX - hopefully it should all be working now.

Code: [Select]
           // or just append one if no .gcode extension is present
            else {
                size_t sl = strlen(filename);
                memcpy(buffer, filename, sl);
                filename = buffer + sl;
            }

Thanks for offering to compile a windows version.

lonesock (Jonathan)

  • KISSlicer Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1042
  • Alibre -> KISSlicer -> RapMan 3.1
    • View Profile
    •  
    • The KISSlicer Website
    •  
    • Email
    •  
    • Personal Message (Offline)
I'm sorry, I wasn't very clear.  The version of MinGW I use does have strncpy, but is missing stpncpy (gpx.c, line 1280).  Can I just use strncpy instead of stpncpy?

thanks,
Jonathan
*A2TD : "Added to the ToDo list"

whpthomas

  • Newbie
  • *
  • Posts: 10
    • View Profile
    •  
    • Email
    •  
    • Personal Message (Offline)
Replacing it with bcopy seems to for just fine. According to the man page, strncpy pads the excess bytes with null characters, but this function appears to do that anyway, so replacing with bcopy or memmove should work just as well.

Code: [Select]
static char* strncpy0(char* dest, const char* src, size_t size)
{
    //strncpy(dest, src, size);
    bcopy(src, dest, size);
    dest[size - 1] = '\0';
    return dest;
}

I have patched and synced this change with github here: https://github.com/whpthomas/GPX

lonesock (Jonathan)

  • KISSlicer Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1042
  • Alibre -> KISSlicer -> RapMan 3.1
    • View Profile
    •  
    • The KISSlicer Website
    •  
    • Email
    •  
    • Personal Message (Offline)
That's great!  I tried compiling with TDM's MinGW on Windows, and it did not like "stpncpy".  I have never used it, and just replacing it with "strncpy" is probably a bad idea!  [8^)  Other than that, it compiled right out of the gate...I'd be happy to upload Win32 and 64 builds, if you can talk me through the correct way to replace stpncpy.

thanks,
Jonathan
*A2TD : "Added to the ToDo list"

PenskeGuy

  • Hero Member
  • *****
  • Posts: 1246
  • Any Day I Learn Something New Is A Good Day
    • View Profile
    •  
    • Spherical Magic | Blown Glass, Carbon Fiber and Imagination
    •  
    • Personal Message (Offline)
Seems an elegant solution. Don't have one of the printers that it could be used with, ATM, but might in the future and this would save a lot of hassle.
3D Touch Dual Head | KISSlicer Pro
Space Art | 3D Modeling | Blown Glass Sculpture | Blog | Bio

whpthomas

  • Newbie
  • *
  • Posts: 10
    • View Profile
    •  
    • Email
    •  
    • Personal Message (Offline)
Well I am very pleased to announce the first public beta release of GPX. A gcode to x3g conversion utility I have written to make it easier for Makerbot 3D printer owners to use KISSlicer as their slicer. In the past you had to load the sliced gcode into ReplicatorG or Makerware to export it, now you can install GPX and it will do the conversion in a matter of seconds as a post process from within KISSlicer.

So I have KISSlicer installed in a directory in my Applications folder, which is where I also installed the gpx binary. To run it as a post process, I just added the following to the Post Process field under the printer->firmware tab in KISSlicer.

Code: [Select]
/Applications/KISSlicer/gpx -p -m r2 "<FILE>"
This will leave a x3g file with the same name as the gcode file in the kisslicer output directory you save to. GPX literally converts the file in seconds - making the whole process quick and easy.

For more details see this thread http://groups.google.com/forum/#!msg/gpx-converter/aaY4_mDS-As/H69k31BYO-YJ

funBart

unread,
Dec 18, 2013, 6:05:20 PM12/18/13
to kisslicer-r...@googlegroups.com
compiled gpx for windows, maybe outdated
GPX.zip
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages