Delete zones by time strand

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

furione
Newbie
Posts: 2
Joined: Fri Oct 28, 2011 12:31 pm
Location: Italy

Delete zones by time strand

Postby furione » Sat Oct 29, 2011 6:53 am

Hi, I am a tecplot beginner, above all about the python macro programming.

I want to ask if it's possible to write a macro that can delete some zone for each time step of my simulation.

Thank you in advance.

furione
Newbie
Posts: 2
Joined: Fri Oct 28, 2011 12:31 pm
Location: Italy

Re: Delete zones by time strand

Postby furione » Mon Oct 31, 2011 3:41 am

I tried a solution where I don't delete any zone.
like this:

for i in node:
for j in zones:
h = 5*j - 4
WSSTj = TecUtil.DataValueGetByZoneVar(h, WSSvarnum, i)

And it seems to function...

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

Re: Delete zones by time strand

Postby Svetlana » Tue Jan 07, 2014 3:20 pm

Group zones by strand (Data > Edit time strands > Zones grouped by...) and use Data > Delete > Zone dialog?


Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 3 guests