extract streamtraces with python

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

Hans Holzofen
Newbie
Posts: 5
Joined: Wed Dec 19, 2012 7:41 am
Location: Germany

extract streamtraces with python

Postby Hans Holzofen » Mon Jan 14, 2013 5:21 am

Hi,

I can insert streamtraces both via python (TecUtil.StreamtraceAdd) and manually via the Streamtraces menu on the left hand side in Tecplot 360 2012R1.

Manually, when I want to export them I go first to Data -- Extract -- Streamtraces. Then I go to File -- Write Data File

How do those two steps work in python?
- I guess writing the file might work via TecUtil.DataSetWriteX
- but how about the extracting?

Thanks for your help,
Cheers,
Claus

Chris Idso
Jedi Master
Posts: 249
Joined: Mon Jan 15, 2007 10:07 am
Location: Bellevue, WA
Contact:

Re: extract streamtraces with python

Postby Chris Idso » Mon Jan 14, 2013 7:05 am

Hi,

You might try the TecUtil.CreateStreamZones function.
Chris


Christopher Idso

Tech Support Lead
Tecplot, Inc

Hans Holzofen
Newbie
Posts: 5
Joined: Wed Dec 19, 2012 7:41 am
Location: Germany

Re: extract streamtraces with python

Postby Hans Holzofen » Tue Jan 15, 2013 3:03 am

Hi Chris,
thanks for your help that does the trick.

Now I am having some issues withTecUtil.DataSetWrite.
I'd like to specify the filename, the zone(s) and the variable(s) to be included into the file that I want to write.

According to group_DataFileSupport.html, this function takes "ArgList_pa" and ArgList as arguments.
It further says that ArgList is a "Set of ARglist entries. This is built using calls to TecUtilArgListAppendXXXX functions"
Then there is a list of some ArglistValues, of which only SV_FNAME is required.
Further down it says that ArgList should be a dictionary.

Could your or someone please shed some light into how the arguments of withTecUtil.DataSetWrite should look like.

Thanks.


Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 1 guest