Python script that can split Gcode file vertically


I would like to be able to take a gcode file for 3D printer and split it vertically in a selected Axis.

i.e. lets say that the print job is in between X100 & X200 and I would like to be able to cut it anywhere by a given X position (i.e. 110mm , 160 or 180...)

Gcode looks like that:

G1 X148.642 Y148.058 E35.1107

G1 X128.785 Y167.916 E36.7919

G1 X128.106 Y167.916 E36.8326

G1 X147.964 Y148.058 E38.5138

G1 X147.285 Y148.058 E38.5545

G1 X127.427 Y167.916 E40.2357

G1 X126.748 Y167.916 E40.2764

G1 X146.606 Y148.058 E41.9577

G1 X145.927 Y148.058 E41.9983

G1 X126.070 Y167.916 E43.6796

G1 X125.391 Y167.916 E43.7202

G1 X145.248 Y148.058 E45.4015

You will have to short the vectors, cut them on the axis cut point, recalculate the new E (amount of plastic) for each of the new child vectors and rearrange the travel etc...

keep in mind that there are gcode commands that are not vectors, seed, Z lifts and others that should be duplicated to the child Gcode files.

This is a very general description of course. I am interested with the result.

- Acceptance test: take any Gcode file, run the split in any given X points and be able to print correctly with the child gcode files.

- Please provide a python code.

- there are many free Gcode viewers so you do not need a 3d printer for self tests but I will prefer providers with 3d printers.

Skills: Python, Software Architecture

See more: python read description file, simple flat file database php cms script, ajax multiple file upload progress bar script, script python extract html tags, retrieve file version information shell script, solaris file system alert shell script, php file upload progress bar script, php script upload picture description, multiple file hosting upload services script, file manager using java script html, send file path php bash script, script writing course jakarta, upload file csv mysql php script, script writing course mumbai, passing file name windows ftp script, split script pages, compare file remove lines shelll script, file upload using java script

About the Employer:
( 9 reviews ) Herzelia, Israel

Project ID: #12945198

Awarded to:


I am an industrial automation engineer with 4 years of expereince in programming large CNCs and NC controls. As such i have a wealth of experience in programming G and M codes for machine with 6 axes or more. Do contac More

$444 USD in 15 days
(4 Reviews)

12 freelancers are bidding on average $602 for this job


Hello, I'd be glad to implement the Python code for gcode splitting. Looking forward to chat with you soon for more details. Best regards,

$250 USD in 3 days
(125 Reviews)

Hi, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 7+ years in web designing & development with good experience in following skills More

$555 USD in 10 days
(60 Reviews)

Dear Client, My name is Miguel Febres and you can find my CV and certifications in the following links: [login to view URL] [login to view URL] I have many years of exper More

$555 USD in 10 days
(63 Reviews)

Hello! We are a professional team of web developers with huge experience in using python for custom webapps based on django and odoo. Please provide more details about your project. We are available and will be happy More

$750 USD in 18 days
(8 Reviews)

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of ex More

$500 USD in 5 days
(24 Reviews)

C, C++, VB5, VB6, VB, VB.NET 2015, ASP.NET, MVC, WPF, XML, MSSQL 2014, HTML & CSS3, AWS(Amazon Web Service) programmer. I have experience about 20 years (32,000+ hours) in programming complex database application as we More

$750 USD in 20 days
(11 Reviews)

Hi, Delivering the task with quality is my goal. My skills fit perfectly to the kind of task you are looking for. In fact, I had delivered tasks to my satisfied clients that is related to this job. You can contact me More

$749 USD in 0 days
(22 Reviews)

Hi, I am very interested in this project. I have 10+ years python development experience. This looks very doable. I don't have 3D printer but as you said we can do test using gcode viewer. please reply for further d More

$555 USD in 10 days
(14 Reviews)

Offshore/Onshore IT application development company, Experts from India having range of Skills available in our In-house staff: Dedicated: Website Developer,Android Developer,Software Developer,Graphic Designer, EComme More

$555 USD in 10 days
(2 Reviews)

WARNING: Our bid is based on the average prices. Contact us to negotiate the price you want! We are a company from Caracas-Venezuela specialized in different areas. Our team is made by designers, developers, animat More

$555 USD in 10 days
(0 Reviews)

Hello Team, "BONAPPS - Delivering Excellence just a click away" We read your entire proposal and are happy to share that we are interested in your proposal. We would like to have an in-depth discussion about the More

$1000 USD in 10 days
(0 Reviews)