Loader For Tecplot Chorus

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

zakamuhammad
Newbie
Posts: 2
Joined: Wed Aug 23, 2017 12:30 am
Location: Shenzhen

Loader For Tecplot Chorus

Postby zakamuhammad » Wed Aug 23, 2017 1:02 am

I need to load a lot of txt files in the chorus project, I tried to add a loader as explained in the chorus user manual, generated a macro, and copied the instructions into xml file but when I read Data from the chorus project, tecplot 360 can't load the data
Macro Read Data Set

Code: Select all

$!READDATASET  '"D:\force.csv" "VERSION=100 FILEEXT=\"*.txt\" FILEDESC=\"General Text\" "+""+"TITLE{SEARCH=NONE  NAME=\"New Dataset\" LINE=1 DELIMITER=AUTO WIDTH=10 }"+""+"VARIABLES{"+"SEARCH=NONE  NAMES = \"w,Mz,fd,fl\""+" LOADED= All  STARTLINE=1 ENDLINE=1 DELIMITER=AUTO WIDTH=10 }"+""+"DATA"+"{"+"IGNORENONNUMERICTOKENS=TRUE IMPORT"+"{"+"STARTID=LINE {"+"LINE=1 }"+""+"ENDID=EOF {"+"LINE=1 }"+""+"FORMAT=IJKPOINT DELIMITER=AUTO WIDTH=10 }"+""+"DIMENSION"+"{"+"AUTO=TRUE CREATEMULTIPLEZONES=FALSE }"+"}"+"GLOBALFILTERS{"+"USEBLANKCELLVALUE=FALSE BLANKCELLVALUE=0.000000 }"'
  DATASETREADER = 'General Text Loader'
  READDATAOPTION = NEW
  RESETSTYLE = YES
  ASSIGNSTRANDIDS = NO
  INITIALPLOTTYPE = XYLINE
  INITIALPLOTFIRSTZONEONLY = NO
  ADDZONESTOEXISTINGSTRANDS = NO
  VARLOADMODE = BYNAME

Xml Edited

Code: Select all

<!DOCTYPE ChorusForeignLoaderDescription>
<ChorusForeignLoaderDescription version="1">
    <TecplotLoader Name="General Text Loader">
        <StandardSyntaxIndentifier Name="FILELIST_TXTFILES" DefaultExtension=".txt"/>
        <InstructionTemplate Name="txt">
            "FILELIST_TXTFILES" %FILELIST_TXTFILES% "VERSION=100 FILEEXT=\"*.txt\" FILEDESC=\"General Text\" "+""+"TITLE{SEARCH=NONE  NAME=\"New Dataset\" LINE=1 DELIMITER=AUTO WIDTH=10 }"+""+"VARIABLES{"+"SEARCH=NONE  NAMES = \"w,Mz,fd,fl\""+" LOADED= All  STARTLINE=1 ENDLINE=1 DELIMITER=AUTO WIDTH=10 }"+""+"DATA"+"{"+"IGNORENONNUMERICTOKENS=TRUE IMPORT"+"{"+"STARTID=LINE {"+"LINE=1 }"+""+"ENDID=EOF {"+"LINE=1 }"+""+"FORMAT=IJKPOINT DELIMITER=AUTO WIDTH=10 }"+""+"DIMENSION"+"{"+"AUTO=TRUE CREATEMULTIPLEZONES=FALSE }"+"}"+"GLOBALFILTERS{"+"USEBLANKCELLVALUE=FALSE BLANKCELLVALUE=0.000000 }"
        </InstructionTemplate>
    </TecplotLoader>
</ChorusForeignLoaderDescription>


I could read data using other methods, i.e.
1. using header info, but that would require me count lines, because data has varying lengths so that is difficult to do :shock:
2. using a macro and copying it will each file, that too requires to put macro in 100s of folders :(
Defining a loader is easy and I don't have to edit existing files and or load additional macros

Return to “Tecplot 360 and Focus”

Who is online

Users browsing this forum: No registered users and 2 guests