str_gcode += """ ;init G1 X30 E20 """ str_gcode += helper.print_square(int_sideLength, flt_squareExtrude) str_gcode += """ """ str_gcode += """ ;first pillar """ str_gcode += helper.print_pillar(int_sideLength, flt_pillarDotSize, flt_pillarExtrude, flt_pillarFeed, flt_pillarPause) str_gcode += """ ;8 dots 0.3 + 8*1.2=9.9 G1 E-2 G4 P1000 G1 X%d F4000 ; to second pillar G1 Z-%d F4000 G1 E2 ;dots for second pillar """ % (int_sideLength, int_sideLength) str_gcode += helper.print_pillar(int_sideLength, flt_pillarDotSize, flt_pillarExtrude, flt_pillarFeed, flt_pillarPause) str_gcode += """
str_gcode += ( """ ;init G1 X20 E15 G1 X%d E20 """ % int_sideLength ) str_gcode += """ ;first pillar """ str_gcode += helper.print_pillar( int_pillarHeight, flt_pillarDotSize, flt_pillarExtrude, flt_pillarFeed, flt_pillarPause ) str_gcode += """ G1 E-2 G4 P1000 G1 X-%d Z-%d F4000 ; to second pillar G1 E2 ;dots for second pillar """ % ( int_sideLength, int_pillarHeight, )