[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 590: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 646: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
opening multiple data files using macros - Tecplot Talk

opening multiple data files using macros

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

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
nipunarora088
Newbie
Posts: 4
Joined: Sun Mar 30, 2014 9:53 pm
Location: New delhi, India
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

opening multiple data files using macros

Postby nipunarora088 » Wed Apr 02, 2014 10:22 pm

I have to handle many data files and on each file i have to perform similar functions for which i have already written a macro script. The name of the files are in the numerical order like "plunging_1.plt", "plunging_2.plt","plunging_3.plt",,,,,.

#!MC 1200
# Created by Tecplot 360 build 12.0.0.4231
$!VarSet |MFBD| = 'C:\Program Files (x86)\Tecplot\Tec360 2011\bin'
$!READDATASET '"H:\Plunging_membrane\codes\newman\22_3_14\plunging_1.plt" '



Is it possible to open these files using a for loop instead of opening each file individually and then executing the same commands.

User avatar
salter
Moderator
Posts: 188
Joined: Thu Dec 21, 2006 10:57 am
Location: NASA Langley Research Center
Contact:

Re: opening multiple data files using macros

Postby salter » Thu Apr 03, 2014 6:50 am

Steve...

Aerospace Research Engineer
Aerothermodynamics Branch
NASA Langley Research Center

nipunarora088
Newbie
Posts: 4
Joined: Sun Mar 30, 2014 9:53 pm
Location: New delhi, India
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Re: opening multiple data files using macros

Postby nipunarora088 » Thu Apr 03, 2014 8:49 am


User avatar
salter
Moderator
Posts: 188
Joined: Thu Dec 21, 2006 10:57 am
Location: NASA Langley Research Center
Contact:

Re: opening multiple data files using macros

Postby salter » Fri Apr 04, 2014 6:55 am

You are most welcome.
Steve...



Aerospace Research Engineer

Aerothermodynamics Branch

NASA Langley Research Center


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 0 guests