Search Results for "macros"


Adding Macros to the Quick Macro Panel

In Tecplot 360, the Quick Macro Panel is a sidebar for playing your favorite or frequently-used macros. It initially appears docked to the right side of the main Tecplot 360 window, but like the other sidebars can be hidden from view. To display the Quick Macro Panel, select Scripting->Quick Macros. Adding macros to the Quick Macro Panel in Tecplot 360 is useful for playing your favorite or frequently-used macros. The […]

» Read More


Clip Plane

Problem: I want to perform a clip plane.   Solution: Use a set of macro commands to clip above/below the defined slice.   The macro command related to the clipping of planes is: $!SliceAttributes 1 ClipPlane. It can take the following arguments: AbovePrimarySlice, BelowPrimarySlice, and None. Consider adding these macros to your Quick Macro Panel  for faster access: $!MacroFunction NAME = “Clip above primary slice” ShowInMacroPanel = TRUE $!SliceAttributes 1 ClipPlane […]

» Read More


Convert Solution Time Format for Display

Problem: My solution time is in seconds (ssss.ss), and I want to display it as hours:minutes:seconds (hh:mm:ss.ss). Solution: Use a Tecplot macro to loop over time and retrieve the solution time. Assign the hours, minutes, and seconds to new variables and refer to their max values using dynamic text.   Macro Procedure (see link to the GitHub script below): Retrieve the number of time steps: $!EXTENDEDCOMMAND COMMANDPROCESSORID=’extend time mcr’ COMMAND=’QUERY.NUMTIMESTEPS […]

» Read More


Extract Boundary Layer Values

This article describes both a macro and a PyTecplot script that extracts a field variable along a line normal to a surface. We recommend using PyTecplot insofar as possible. Example: Load the M6-Wing example file, which can be found in your Tecplot Installation Directory: …/Tecplot/Tecplot 360 EX 20xx R1/examples/OneraM6wing/OneraM6_SU2_RANS.plt. To better visualize the node at which we’ll probe, let’s turn on the mesh for the second zone. Zoom somewhere on […]

» Read More


Displaying Data Labels at High Magnification

Question: At high magnification, my cell and point labels become grainy and look terrible. How can I display these labels correctly? Solution: Use software rather than hardware rendering to display these node labels on a highly zoomed plot. See Figure 2. 1)  Download software_hardware_rendering_qmp.mcr  from our GitHub or create a macro with this code: #!MC 1200 $!MacroFunction Name = “SwitchToSoftwareRendering” SHOWINMACROPANEL = true $!Page UseSoftwareRendering = true $!EndMacroFunction $!MacroFunction Name […]

» Read More


How to Show Invisible Frame Borders

Problem: I have multiple frames on the paper and I don’t want frame borders in my export. So I’ve turned off the option Show border in the dialog Frame>Edit Active Frame. At the same time I’d like to see an outline for all invisible frame borders to get a better idea how these frames are positioned and overlap on the page in the 360 EX session. This outline should not […]

» Read More


Deleting Geometries in a Layout Template

Question: How does one replace the geometries (shapes, polylines, etc.) already present in a layout when a new data file is loaded into the layout file? Explanation of the Question: I created a layout file from a dataset that contains geometries, such as a relative wind velocity vector or aircraft body axes relative to wind axes. I want to create a template from this layout, but the geometries are now […]

» Read More


Calling a Macro from Another Macro

Problem: I have a few macros that I use often and want to call them from within another macro. Solution: Tecplot 360 allows for macros and macro functions to be called from other macro files via the $!INCLUDEMACRO command. For example, if you have a macro function to post an equation in a file called add_text.mcr: #!MC 1410 $!MACROFUNCTION NAME = “Equation” $!AttachText AnchorPos { X = 10 Y = […]

» Read More


Use Raw Strings to Load Multiple Files Using Multiple Lines

In 2018 R2 we’ve added the capability for raw strings to be used in Macros. This added the capability to space the files out on multiple lines for readability. Before raw strings, all of the files had to be placed on one line which made for terrible readability when loading more than a couple of data files. Here is the syntax for loading multiple files: $!ReadDataSet R”INPUTFILES(“/this/is/a/somewhat/long/file/name/File1.dat”                                                                 “/this/is/a/somewhat/long/file/name/File2.dat”                                                                 […]

» Read More