Page 1 of 1

How to check the progress of a macro?

Posted: Sat Jun 02, 2007 12:43 pm
by helenita
Hi,
I am running a macro using Tecplot 10 on a few hundred files and it takes several hours to complete! I would like to be able to monitor the progress of the macro.

In the following link:
http://www.tecplottalk.com/viewtopic.php?p=267&sid=1
I found these commands:
TecUtilStatusStartPercentDone
TecUtilStatusCheckPercentDone
TecUtilStatusFinishPercentDone
TecUtilStatusSetPercentDoneText

But I don't know how to use them. Do you know how to use them? or could you suggest me other functions to use? ( and how to use them :D )
Thanks

Re: How to check the progress of a macro?

Posted: Sun Jun 03, 2007 7:39 am
by jim
Anything "TecUtil" is part of the ADK, a C/C++ or FORTRAN programming layer one uses to access the internal functions of Tecplot. These aren't available from macros.

As far as your long-running job goes, you could create an external log file. For example, when I'm doing performance testing on Windows, I'll interject lines like this:

Code: Select all

$!system 'cmd /c c:\cygwin\bin\echo "Begin Load: %time%" > time_01.log
$!READDATASET (and so on)
$!system 'cmd /c c:\cygwin\bin\echo "End Load: %time%" >> time_01.log


Cygwin is a free set of utilities providing linux commands on Windows. (http://www.cygwin.com) I can then use a text viewer (or "tail -f time_01.log" from cygwin ;-)) to keep progress on the status of my long-running jobs.

Re: How to check the progress of a macro?

Posted: Sun Jan 05, 2014 6:20 pm
by Svetlana
An add-on appears to be able to do this, eg http://download.tecplot.com/360/current ... usBar.html

Re: How to check the progress of a macro?

Posted: Wed Jan 08, 2014 9:17 pm
by Svetlana
You can also use the function from a Python script. Example:

Code: Select all

import TecUtil
import TecVals
from TecVals import *

# Results = TecUtil.DialogMessageBox("hi", MessageBoxType_Information)

TecUtil.StatusStartPercentDone("",1,1)
# some long work
TecUtil.StatusCheckPercentDone(28) # this doesn't actually check, it /shows/
# some long work
TecUtil.StatusFinishPercentDone()