How to check the progress of a macro?

Tecplot's automation language

Python scripts were supported in the alpha version for Legacy 360 (2013). Python inquiries in 2017 should be directed to the PyTecplot Forum.

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

helenita
Newbie
Posts: 1
Joined: Sat Jun 02, 2007 12:36 pm
Location: usa
Contact:

How to check the progress of a macro?

Postby helenita » Sat Jun 02, 2007 12:43 pm

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

jim

Re: How to check the progress of a macro?

Postby jim » Sun Jun 03, 2007 7:39 am

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.

Svetlana
Expert
Posts: 93
Joined: Sun Dec 22, 2013 3:08 pm
Location: Australia
Contact:

Re: How to check the progress of a macro?

Postby Svetlana » Sun Jan 05, 2014 6:20 pm

An add-on appears to be able to do this, eg http://download.tecplot.com/360/current ... usBar.html

Svetlana
Expert
Posts: 93
Joined: Sun Dec 22, 2013 3:08 pm
Location: Australia
Contact:

Re: How to check the progress of a macro?

Postby Svetlana » Wed Jan 08, 2014 9:17 pm

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


Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 1 guest