CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Tecplot (https://www.cfd-online.com/Forums/tecplot/)
-   -   Creatin macros for multiple data sets and assigning multiple zones (https://www.cfd-online.com/Forums/tecplot/214245-creatin-macros-multiple-data-sets-assigning-multiple-zones.html)

Skyler January 24, 2019 12:24

Creating macros for multiple data sets and assigning multiple zones
 
2 Attachment(s)
Hi everyone, Firs time poster here,

So I took a look around the forums after ive been banging my head for a few hours in the office now and cannot find a fix to this issue that I am having in tec360.

So what I am doing is using a macro loop to load and read in multiple .dat files and then assign a specific Y axis var and then Assign a specific zone. Each .dat file is a set of data with 5 variables that is changing over time, I can get all the data loaded in, all the zones loaded in, and all the variables. I'm assigning all active line maps to show one variable but I want each active line map to have a different active zone as well and that is my issue.

I've tried setting a environment variable called |counter| and then right before the end of the loop adding 1 to |counter| and then continuing on until the loop finishes. However when i do this, if i have 23 files loaded in and consequently 23 zones, it loads line maps 1-22 with zone 1 and then the 23 line map with the 23 zone. I've also tried using a similar syntax to ACTIVELINEMAPS +=[1-23] but it doesn't work for the zones like it did for that particular command. I've also tried using the loop counter to do the job but it gives the same results as the |counter| variable did. So this is where I am at. I can post my macro for reference and thank you all in advance. I've added a .docx file that has the macro I'm using written in it, and also a picture of the mapping style window and the result i'm getting.

EDIT: Solved the issue


All times are GMT -4. The time now is 20:34.