Plugin - how to get estimated printing time

Hi,
I am implementing my plugin according to this page:
https://rhplugins.repetier.com/host_extender_1_1basic_1_1_g_code_analyzer.html

I want to get Estimated printing time of current job like Printing statistics in the Print Preview tab. How can I get it?

Comments

  • I currently add a button to User control. when it is pressed, host.RunCurrentJob() is called  in a function.
    It seems to be okay; the contents in Gcode editor are sent step by step.
  • Convert IPrintJob to PrintJob and and read value computedPrintingTime which is estimated printing time in seconds when the job starts.
  • Thank you! Repetier,

    I found GcodeAnalyzer can be used to calculate the time. After instatiating a GcodeAnalyzer object, I experimentally send all Gcodes in GcodeEditor to there using analyzeShort().

    Anyway, I try IPrintJob, too. Thanks!
  • Yes, analyser is what gets fed when you start a print to compute the time or to compute it for preview. What I said is just the result.
Sign In or Register to comment.