Page 1 of 1

How to check the progress of a macro?

Posted: Sat Jun 02, 2007 12:43 pm
by helenita
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:
I found these commands:

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 )

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. ( 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 ... 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)

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