dietzm / GCodeInfo

This is a small command line tool to analyse gcodes (control codes for 3D printers, CNC,...). It calculates various print details like -print time -used filament -yx move distance -print object dimension -average print speeds -number of layers -layer details -speed distribution -weight and price of the printed object ... I used it to optimize my slicer settings and print times for my reprap printer. Tested mostly with slic3r generated gcodes.
http://gcodesim.dietzm.de
46 stars 20 forks source link

Is there a way to set the material and prices as an argument? #7

Open RobListon opened 10 years ago

RobListon commented 10 years ago

GCodeInfo is making a guess that the material used in my gcode files is ABS but I'm using PLA which weighs slightly more thus the estimates for the weights a off by a little bit. I would be nice to be able to set the value of this to force another material. Also, can the price per unit be set as an argument as well so that I can specify my cost / unit of material?

dietzm commented 10 years ago

Hi Rob,

GCodeInfo guesses the material by looking at the average print temperature: if(getAvgextemp() <= 205 && getAvgextemp() > 140){ return Material.PLA; } if(getAvgextemp() < 290 && getAvgextemp() > 205){ return Material.ABS; }

You can set a system environment variable to specify the price per kg. e.g. FILAMENT_PRICE_KG=30

On Wed, Feb 12, 2014 at 10:25 PM, Rob notifications@github.com wrote:

GCodeInfo is making a guess that the material used in my gcode files is ABS but I'm using PLA which weighs slightly more thus the estimates for the weights a off by a little bit. I would be nice to be able to set the value of this to force another material. Also, can the price per unit be set as an argument as well so that I can specify my cost / unit of material?

Reply to this email directly or view it on GitHubhttps://github.com/dietzm/GCodeInfo/issues/7 .

RobListon commented 10 years ago

Ah, I see. The software from Makerbot Industries just runs the heads at 230C regardless of the material going through it.