Name

gcodescale - tool to scale or translate gcode.

Download

MacOS (universal 64-bit)

Synopsis 

gcodescale -i FILE (-s scale) (-t translate) (-c comment)

Description 

gcodescale manipulates existing gcode by scaling and/or translating (moving) each point.

The resulting gcode will be written to a new file using the naming convention originalname_transformation.gcode.

 If no options are supplied gcodescale will dump information about the gcode

Options

-i 

Name of the input file. This must be valid gcode.

-s (factor)

Scale the gcode by factor. A factor less than 1.0 will shrink the dimensions and one above 1.0 will increase the dimensions 

-t (x:new_horizontal_position,y:new_vertical_position)

Translates or moves all points in the gcode by new_horisontal_position and new_vertical_position

-c 

Preserves gcode comments

-h 

Display help message and exit.

 

Examples 

Scale gcode to 75% of the original size. Resulting in a new file rose_scaled_75.svg

gcodescale -i rose.gcode -s .075

Move gcode 100 units to the left and 75 units up. Resulting in a new file rose_translated.svg

gcodescale -i rose.gcode -t x:-100,y:75

Combine translating and scaling by scaling to double size and moving 200 units to the right. Resulting in a new file rose_scaled200_translated.svg

gcodescale -i rose.gcode -s 2.0 -t x:200