<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Tecplot blog</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/" />
    <link rel="self" type="application/atom+xml" href="http://www.tecplottalk.com/python/atom.xml" />
    <id>tag:www.tecplottalk.com,2007-12-05:/python//1</id>
    <updated>2008-05-16T05:23:18Z</updated>
    <subtitle>Tecplot&apos;s product manager has free time to muse!</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Publishing Platform 4.01</generator>

<entry>
    <title>Python: Toggling zones by regular expressions</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/2008/04/python-toggling-zones-by-regul.shtml" />
    <id>tag:www.tecplottalk.com,2008:/python//1.6</id>

    <published>2008-04-16T04:52:02Z</published>
    <updated>2008-05-16T05:23:18Z</updated>

    <summary><![CDATA[ A customer modeling molecules wanted to toggle on/off zones representing chemical elements.&nbsp; We have a pattern matching tool in the Zone Style dialog -- see diagram at right -- but each use is about four clicks.&nbsp; Would there be...]]></summary>
    <author>
        <name>jim</name>
        <uri>http://www.jimcarson.com</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.tecplottalk.com/python/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image"><a href="http://www.tecplottalk.com/python/zoneselect.jpg/zoneselect.shtml" onclick="window.open('http://www.tecplottalk.com/python/zoneselect.jpg/zoneselect.shtml','popup','width=486,height=196,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.tecplottalk.com/python/zoneselect.jpg/zoneselect-thumb-243x98.jpg" alt="zoneselect.jpg" class="mt-image-right" style="margin: 0pt 0pt 20px 20px; float: right;" height="98" width="243" /></a></span>
A customer modeling molecules wanted to toggle on/off zones representing chemical elements.&nbsp; We have a pattern matching tool in the Zone Style dialog -- see diagram at right -- but each use is about four clicks.&nbsp; Would there be an easier way to toggle these on and off?<br /><br />This is what I came up with, and it can be called from the Quick Macro Panel:<br /><br /><blockquote>
<font face="Courier">import TecUtil<br />import TecVals<br />import re<br />import string<br /><br />#<br /># This function toggles the named zones on or off depending on the<br /># pattern provided.&nbsp; If you specify "all," it applies to all zones.<br />#<br /><b>def toggle_zones(zonename, onoff):</b><br />&nbsp;&nbsp; if onoff == "off":<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setto = TecVals.<a href="http://download.tecplottalk.com/docs/adkrm/GLOBAL_8h.html#6c5c2f47417dbec43ff8b520a95b0d34">AssignOp_MinusEquals</a><br />&nbsp;&nbsp; else:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setto = TecVals.AssignOp_PlusEquals<br /><br />&nbsp;&nbsp; n=CountFieldmaps()<br />&nbsp;&nbsp; #<br />&nbsp;&nbsp; # count through fieldmaps<br />&nbsp;&nbsp; #<br />&nbsp;&nbsp; Results = []<br />&nbsp;&nbsp; tmp = []<br />&nbsp;&nbsp; for i in xrange(1,n+1):<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Results = TecUtil.<a href="http://download.tecplottalk.com/docs/adkrm/GLOBAL_8h.html#6c5c2f47417dbec43ff8b520a95b0d34">ZoneGetName</a>(i)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (re.compile(zonename).search(Results[1],1) or zonename == "all"):<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp.extend([i])<br />&nbsp;&nbsp; TecUtil.<a href="http://download.tecplottalk.com/docs/adkrm/group__DataServices.html#gd87dcca088a2f17e19659caaf988f002">ZoneSetActive</a>(tmp, setto)<br />&nbsp;&nbsp; return<br /><br /># <br /># The ADK is unforgiving about some operations.&nbsp; Thus, we check if a dataset<br /># is available first, then we return the number of fieldmaps.&nbsp; Note that we use<br /># fieldmaps instead of zones because the dataset could be transient.&nbsp; If it is,<br /># we will turn off parts across all timesteps.<br />#<br /><b>def CountFieldmaps():</b><br />&nbsp; if TecUtil.<a href="http://download.tecplottalk.com/docs/adkrm/group__DataServices.html#gf3f55e2ba20c936f5cf94e57a3ca9696">DataSetIsAvailable</a>():<br />&nbsp;&nbsp;&nbsp; return (TecUtil.<a href="http://download.tecplottalk.com/docs/adkrm/group__VisualizationServices.html#gbf3ec41e5591333ea3e4c890e4afbc7f">FieldMapGetCount</a>())<br />&nbsp; else:<br />&nbsp;&nbsp;&nbsp; debugm("There is no dataset loaded.")<br />&nbsp;&nbsp;&nbsp; return -1<br />&nbsp; return</font><br /></blockquote>As mentioned last time, we expose only those functions prefaced by <b>TP_</b>, thus here are our two wrapper functions:<br /><br /><blockquote><font face="Courier"><b>def TP_zones_off(zone_name_pattern):</b><br />&nbsp;&nbsp; return toggle_zones(zone_name_pattern,"off")<br /><br /><b>def TP_zones_on(zone_name_pattern):</b><br />&nbsp;&nbsp; return toggle_zones(zone_name_pattern,"on")<br /></font></blockquote><br /><br /><br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>Lesson 2: Python on Tecplot examples</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/2008/01/lesson-2-python-on-tecplot-exa.shtml" />
    <id>tag:www.tecplottalk.com,2007:/python//1.5</id>

    <published>2008-01-26T23:20:14Z</published>
    <updated>2008-05-16T04:52:44Z</updated>

    <summary><![CDATA[In the Tecplot distributions ($TECHOME/examples/python) are some sample python scripts to illustrate different concepts and address specific user-requested features.&nbsp; Over the next few months, we'll dissect these, calling out useful features.&nbsp; Until then, here is an overview of what's there:Keyframe...]]></summary>
    <author>
        <name>jim</name>
        <uri>http://www.jimcarson.com</uri>
    </author>
    
    <category term="python" label="python" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.tecplottalk.com/python/">
        <![CDATA[<font style="font-size: 1.25em;">In the Tecplot distributions ($TECHOME/examples/python) are some sample python scripts to illustrate different concepts and address specific user-requested features.&nbsp; Over the next few months, we'll dissect these, calling out useful features.&nbsp; <br /><br />Until then, here is an overview of what's there:</font><br /><br /><ul><li><b>Keyframe animation</b> (by Andrew Ritzmann)
--&nbsp; [<b><a href="http://www.tecplottalk.com/py/QuickPythonScript/QuickPythonScript.htm">Tutorial</a></b>]&nbsp; This script lets you generate an animation based on the viewer's perspective moving.&nbsp; Simply set a view, take a snapshot, move to the next view, take
another snapshot, etc. When you're done, click "OK" and the script interpolates ten positions between each snapshot, generating an AVI
animation as its output.&nbsp; Future versions may include more sophisticated splines. With
a two-line change, one can generate a Flash animation.&nbsp; Source: <a href="http://www.tecplottalk.com/py/examples/KeyFrame.py"><b>KeyFrame.py</b></a><a href="http://www.tecplottalk.com/py/examples/KeyFrame.py"><img class="TargetAlertIcon" src="chrome://targetalert/content/skin/txt.png" /></a><br /><br /></li><li><b>Direct Excel Reading</b> (by Andrew Ritzmann) -- This script is illustrative of using a third-party python library to directly read from an Excel file, do some conversion, and plot the results.&nbsp; <i>The reader must be installed separately.</i>&nbsp; The zip file includes the <a href="http://cheeseshop.python.org/pypi/xlrd">xlrd reader</a> for Windows.&nbsp; Other platforms may download it from <a href="http://cheeseshop.python.org/pypi/xlrd">John Machin's site</a>.<br /><br />The sample geyser temperature reading data is courtesy of Dr. Hank Heasler, National Park Service.&nbsp; <br /><br />Zip distribution: <a href="http://www.tecplottalk.com/py/examples/convert_excel.zip">convert_excel.zip<img class="TargetAlertIcon" src="chrome://targetalert/content/skin/zip.png" /></a>.&nbsp;&nbsp;  <br /><br /></li><li><b>FFT</b>
(by Jim Carson, based on work by Anders Andressen in Linux Gazette) -- This simple example illustrates loading data, computing an
FFT, and plotting the results. The space-delimited data file, <a href="http://www.tecplottalk.com/py/examples/sunspots.dat">sunspots.dat</a>, contains
the number of sunspots observed from 1700 through 2000.&nbsp;&nbsp; Script: <a href="http://www.tecplottalk.com/py/examples/sunspots.py">sunspots.py<img class="TargetAlertIcon" src="chrome://targetalert/content/skin/txt.png" /></a><br /> <br /></li><li><b>Integration visual</b> (by Andrew Ritzmann) -- this python
script fills in the area under a curve, useful to show a user which
area will be integrated. Source: <a href="http://www.tecplottalk.com/py/examples/integration_visual.py">integration_visual.py</a></li></ul><br /><font style="font-size: 1.25em;">Tecplot 360 2008 only (because Tecplot Focus doesn't have these two loaders):</font><br /><br /><ul><li><b>Load multiple plot3D grid files</b> (by Andrew Ritzmann) --
this python routine uses a TK dialog as a front-end to load multiple
PLOT-3D files into Tecplot, saving many mouse clicks. It intelligently
pattern matches for grid and solution files, then uses Tecplot's macro
language to actually load the data. <br />
<a href="http://www.tecplottalk.com/py/examples/Plot3D_Multi.txt">Script<img class="TargetAlertIcon" src="chrome://targetalert/content/skin/txt.png" /></a>, <a href="http://www.tecplottalk.com/py/load_multiple_plot3d_grids.swf">animated example</a><br /><br />
</li><li><b>Load multiple STL files</b> (by Andrew Ritzmann) -- this python
routine uses a TK dialog as a front-end to load multiple STL (CAD-type
drawings) data files, saving many mouse clicks. <br />
<a href="http://www.tecplottalk.com/py/examples/stl.zip">Script<img class="TargetAlertIcon" src="chrome://targetalert/content/skin/zip.png" /></a>,  (no animation, yet)<br /><a href="http://www.tecplottalk.com/py/examples/integration_visual.py"><img class="TargetAlertIcon" src="chrome://targetalert/content/skin/txt.png" /></a><br /></li></ul><font style="font-size: 1.25em;">Finally, for humor value, my first python script ever:  </font><br /><br /><ul><li><b>Style-o-Matic</b> (by Jim Carson) -- This script is an example of using python to automate calling Tecplot's macro language.&nbsp; What it does is automatically set surface versus volume styles differently, based on the contents of a <a href="http://www.tecplottalk.com/python/examples/default_styles.txt">text file</a> in the user's TECHOME directory.&nbsp; For example, for volume zones it will toggle off the shade and mesh styles.&nbsp;&nbsp;&nbsp; Archive: <a href="http://www.tecplottalk.com/py/examples/styleomatic.zip">styleomatic.zip<img class="TargetAlertIcon" src="chrome://targetalert/content/skin/zip.png" /></a>.<br /></li></ul>]]>
        
    </content>
</entry>

<entry>
    <title>Lesson 1: Hello World</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/2008/01/lesson-1-hello-world-deconstru.shtml" />
    <id>tag:www.tecplottalk.com,2007:/python//1.4</id>

    <published>2008-01-23T01:55:38Z</published>
    <updated>2008-05-16T04:52:55Z</updated>

    <summary><![CDATA[ To familiarize yourself with the basic use of the Quick Python Scripts panel, here is an interactive tutorial using the sample KeyFrame.py (also contained in your examples/python/ directory). Now, we will write the ubiquitous Hello World.&nbsp; Here is the...]]></summary>
    <author>
        <name>jim</name>
        <uri>http://www.jimcarson.com</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.tecplottalk.com/python/">
        <![CDATA[<img alt="quick_python_scripts_helloworld.jpg" src="http://www.tecplottalk.com/python/qps_helloworld.jpg" valign="top" align="right" height="374" width="233" />

To familiarize yourself with the basic use of the Quick Python Scripts panel, here is an interactive <a href="http://www.tecplottalk.com/python/QuickPythonScript/QuickPythonScript.htm">tutorial</a> using the sample <a href="http://www.tecplottalk.com/python/examples/KeyFrame.py">KeyFrame.py</a> (also contained in your examples/python/ directory).<br />
<br />Now, we will write the ubiquitous Hello World.&nbsp; Here is <a href="http://www.tecplottalk.com/python/hello_world.py">the code</a>:<br />
<br /><blockquote><code>
import TecUtil<br />
import TecVals<br /><br />
def TP_hello_world():<br />
&nbsp;&nbsp;&nbsp; TecUtil.DialogMessageBox("Hello, world!",TecVals.MessageBox_Information)<br /></code></blockquote>

<br />Save the file into your examples/python directory.&nbsp; Load and run it via quick macro panel as shown on the right.<br /><br /><br />You will see this:<br /><img alt="hello_world_dialog.jpg" src="http://www.tecplottalk.com/python/hello_world_dialog.jpg" height="126" width="135" /><br /><br />Now for some explanation.&nbsp; These lines:<br /><br /><blockquote><code>
import TecUtil</code><br /><code>
import TecVals</code><br /><code></code></blockquote><code><br /></code>include the set of Tecplot constant definitions and functions documented in the <a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/adkrm/">ADK reference manual</a>.&nbsp; We've tried to make these function calls as python-like as we could.&nbsp; <br /><br />This next line:<br /><br /><blockquote><code>
def TP_hello_world():</code><code></code></blockquote><code><br /></code>defines the function to call.&nbsp; As a convention, any function beginning with <b>TP_</b> will be visible from the Quick Python Scripts panel for that module (with the TP_ removed).&nbsp; We did this to give users flexibility in what functions were displayed in the list.&nbsp; For example, without this filtering, importing a library like NumPy or SciPy would show a long, unwieldy list of functions.<br /><br />Finally, this line:<br />
<br /><code>
&nbsp;&nbsp;&nbsp; TecUtil.<a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/adkrm/group__UserInterface.html#gfad40bde2d67013c7098e3aa5e891139">DialogMessageBox</a>("Hello, world!",TecVals.<a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/adkrm/GLOBAL_8h.html#1fa170492da09fea01039026da6a7937">MessageBox_Information</a>)</code><br /><br />calls the <a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/adkrm/group__UserInterface.html#gfad40bde2d67013c7098e3aa5e891139">Tecplot function</a> to post a message box.&nbsp;&nbsp; The function's parameters are a message to post and the type of message.&nbsp; If I were a real programmer, I would check the return value of the function.<br /><br />Let's make this slightly more useful and show another feature of the QuickPythonScripts panel, the ability to pass parameters.&nbsp; Here's the source, <a href="http://www.tecplottalk.com/python/hello_ymh.py">hello_ymh.py</a>.<br /><br /><blockquote><code>
def TP_hello_world(your_message_here):</code><br />&nbsp;&nbsp;&nbsp; <code>return TecUtil.DialogMessageBox("Hello, " + your_message_here + "!",</code><br /><code>&nbsp;&nbsp;&nbsp; TecVals.MessageBox_Information)</code><br /><code></code></blockquote>When loaded, you'll notice a slight change when the function is selected:<br /><span class="mt-enclosure mt-enclosure-image"><img alt="hello_ymh.jpg" src="http://www.tecplottalk.com/python/hello_ymh.jpg" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="372" width="246" /></span>We can now send a parameter to the script.&nbsp; For example, I've added my name. When the function's run, the obvious happens:<br /><span class="mt-enclosure mt-enclosure-image"><img alt="hello_jim.jpg" src="http://www.tecplottalk.com/python/hello_jim.jpg" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="119" width="125" /></span><br /><br />Multiple parameters are separated by a comma.&nbsp; For example, the debugv function takes a message and a value.&nbsp; (And, illustrating the earlier point about this dialog not showing functions that are not prefaced by TP_, <i>TP_debugv</i> calls another function, debugm. <br /><br />For those who have used Tecplot's macro language, you can record Tecplot macros that load and call functions in the Quick Python Scripts.&nbsp; This might be useful if you're doing a batch set of operations.&nbsp; For example:<br /><br />$!EXTENDEDCOMMAND COMMANDPROCESSORID = 'Python Utility'<br />&nbsp; COMMAND = 'RUNPYFUNCTION MODULE="hello_world" FUNCTION="hello_ymh" ARGUMENTS="Jim"'<br /><br /><br /><br /><div><br /></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>Lesson 0: Setting up your environment</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/2008/01/lesson-0-setting-up-your-envir.shtml" />
    <id>tag:www.tecplottalk.com,2007:/py//1.3</id>

    <published>2008-01-14T15:49:09Z</published>
    <updated>2008-05-16T04:53:05Z</updated>

    <summary><![CDATA[First: Don't Panic.&nbsp; This tutorial is erring on the side of being more thorough. To keep things simple, the Tecplot installation installs Python 2.5.1.&nbsp; For Windows, we run the Python.org installation.&nbsp; For Linux and Mac, it's included in our installation....]]></summary>
    <author>
        <name>jim</name>
        <uri>http://www.jimcarson.com</uri>
    </author>
    
    <category term="python" label="python" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.tecplottalk.com/python/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image"><img alt="config_python_search_path.jpg" src="http://www.tecplottalk.com/py/py/config_python_search_path.jpg" class="mt-image-right" style="margin: 0pt 0pt 20px 20px; float: right;" height="293" width="307" /></span>First: <b>Don't Panic.</b>&nbsp; This tutorial is erring on the side of being more thorough. <br /><br />To keep things simple, the Tecplot installation installs Python 2.5.1.&nbsp; For Windows, we run the <a href="http://python.org/">Python.org</a> installation.&nbsp; For Linux and Mac, it's included in our installation. <br /> <br />Python utilizes the PYTHONPATH environment variable for setting up a list of directories where it will search for scripts.&nbsp; This means that if you try to run a Quick Python Script from a location not specifically contained in the PYTHONPATH list, python will not recognize it. You will receive a "Python module failed to load ... No module named ..." message.<br /><br />If you're running a script just once, and you don't want to exit your Tecplot session, you can append a path for that Tecplot session.&nbsp; Under the <u>Scripts </u>menu, select <u>Configure Python Search Path</u>.&nbsp; Browse to a directory you wish to include and click Add to list.<br /><br />This setting will remain until you exit Tecplot.&nbsp; By default, we pre-load this with a small set of directories, including the examples/python directory.<br /><br /><b>For daily use, we'd recommend setting the PYTHONPATH environment variable:</b><br />
<br /><font style="font-size: 1.25em;"><b>Linux:</b>&nbsp;&nbsp;&nbsp;</font> <br />1. Add this line to your .bashrc file:
<blockquote><code><br />export PYTHONPATH=${PYTHONPATH}:/some/directory/goes/here</code><br /></blockquote>where, obviously, /some/directory/goes/here is a colon-delimited list of directories where you want to search for scripts.<br />&nbsp; <br />2. Source this:<br />&nbsp;&nbsp;&nbsp;&nbsp; <code>. ~/.bashrc<br /></code><br />3. Then start Tecplot.&nbsp; <i>Wohoo, that was easy!</i><br /><br /><b><font style="font-size: 1.25em;">Windows:</font> </b><br />
1. Press the [Start] and [break] keys at the same time.  (Alternatively, right click on your computer's icon and select "Properties"<br />
<span class="mt-enclosure mt-enclosure-image"><a href="http://www.tecplottalk.com/py/system_properties.html" onclick="window.open('http://www.tecplottalk.com/py/system_properties.html','popup','width=419,height=486,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.tecplottalk.com/py/assets_c/2007/12/system_properties-thumb-100x115.jpg" alt="system_properties.jpg" class="mt-image-right" style="margin: 0pt 0pt 20px 20px; float: left;" height="115" width="100" /></a></span>
<span class="mt-enclosure mt-enclosure-image"></span>
<br />
&nbsp;<br /><br /><br /><br /><br /><br /><br /><br />2. Click on the <i>Advanced</i> tab
<br />3. Click on the <i>Environment Variables</i> button<br />4. The "Environment Variables" dialog pops up.&nbsp; On the bottom half ("System Variables"), scroll down until you see PYTHONPATH.&nbsp; Highlight it, then click the Edit button.<br /><br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.tecplottalk.com/py/py/windows_environment_variables.html" onclick="window.open('http://www.tecplottalk.com/py/py/windows_environment_variables.html','popup','width=384,height=430,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.tecplottalk.com/py/py/windows_environment_variables-thumb-100x111.jpg" alt="windows_environment_variables.jpg" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="111" width="100" /></a></span><br /><br /><br /><br /><br />Note: if you want the changes to only apply to you, or you don't have administrative rights on your desktop, use the top half of this dialog.&nbsp; Same variable name.&nbsp; <br /><br /><br />5. Our Windows installation pre-populates this with a few directories underneath the Tecplot installation directory, e.g. ?\python, ?\examples\python<br /><br />Append the Variable Value field with a semi-colon and the path you wish to add.&nbsp; For example:<br /><br /><blockquote><code>;%TEC_360_2008%\test<br /></code></blockquote><br /><div><span class="mt-enclosure mt-enclosure-image"><img alt="edit_system_variable.jpg" src="http://www.tecplottalk.com/py/py/edit_system_variable.jpg" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="147" width="347" /></span></div><div><br /></div><div><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />6. Whew!<br /><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>Python on Tecplot: resources</title>
    <link rel="alternate" type="text/html" href="http://www.tecplottalk.com/python/2008/01/python-on-tecplot-resources.shtml" />
    <id>tag:www.tecplottalk.com,2007:/py//1.2</id>

    <published>2008-01-05T01:25:01Z</published>
    <updated>2008-05-16T04:53:14Z</updated>

    <summary><![CDATA[Much of this assumes you have some familiarity with the python programming language.&nbsp; If you do not, we would recommend Mark Pilgrim's tutorial.Documentation:Tecplot User's manual -- Chapter 30, "Working with Python Scripts" shows how to call python functions from Tecplot.Tecplot's...]]></summary>
    <author>
        <name>jim</name>
        <uri>http://www.jimcarson.com</uri>
    </author>
    
    <category term="documentation" label="documentation" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.tecplottalk.com/python/">
        <![CDATA[Much of this assumes you have some familiarity with the python programming language.&nbsp; If you do not, we would recommend <a href="http://www.diveintopython.org/">Mark Pilgrim's tutorial</a>.<br /><b><br />Documentation:</b><br /><ul><li>Tecplot <a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/360/tpum.pdf">User's manual</a> -- Chapter 30, "Working with Python Scripts" shows how to call python functions from Tecplot.</li><li>Tecplot's <a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/360/tprm.pdf">Reference Manual</a> -- Part 2 discusses the syntax rules of using our ADK functions.<br /></li><li>Tecplot <a href="http://ec2-67-202-16-13.z-1.compute-1.amazonaws.com/docs/adkrm/">ADK reference</a> -- is the online listing of functions available. The functions are identical to the C and FORTRAN sets we've provided in the Application Developer's Kit, but with python bindings.&nbsp; Supported functions have an example of python syntax.</li></ul><b>Examples and Getting Help:</b><br /><ul><li>Examples directory -- in your ?/examples/python directory are some sample scripts that were written during the beta testing.&nbsp; We will post updates to TecplotTalk and encourage user-contributed scripts.</li><li>Tecplot Talk <a href="http://www.tecplottalk.com/">Forums</a>, especially the <a href="http://www.tecplottalk.com/viewforum.php?f=12">Scripting</a> section, are an excellent place to post your questions.<br /></li></ul> ]]>
        
    </content>
</entry>

</feed>
