Home Image-Pro Automation (Macros, Apps, Reports)

APPEND issues within MEASUREMENT TABLE + EXPORT + TEXT FILE . . .

All --

I have code similar to the following within a PROJECT . . .

        With Measure.Measurements.TableCommands.SaveAsText(xyz)
            '.FileName = "ABC\IMAGE_FILE_NAME.txt"
            .FileName = TempDataFileFullName
            .FilterIndex = 1
            .UseStatistics = False
            .Run(doc2)
        End With
Where ABC is the path to the current image file and IMAGE_FILE_NAME is the name of the current image file.

There seem to be two issues with EXPORTING the data.  They are:

** ISSUE #1

If the data lands in

    1.TXT
    2.TXT
    and
    3.TXT

and the files are concatenated together into a COMBO.TXT using the following commands at the right location

    copy *.txt combo.txx

and

    rename combo.txx comb.txt

then the first character of 2.TXT will be immediately to the right of the last character of 1.TXT (and the same is true for the end of 2.TXT and the beginning of 3.TXT).

** ISSUE #2

There does not seem to be an option to APPEND the data during the EXPORT TEXT FILE operation.  I've looked around in the APPLICATION and the closest thing I can find is the PREMIER OPTIONS + EXPORT + EXCEL + EXPORT DATA TO + APPEND TO BOTTOM option but this does not seem to change the operation of EXPORT TEXT FILE.

Is there an APPLICATION SETTING or a PARAMETER for
    Measure.Measurements.TableCommands.SaveAsText
that will work around ISSUE #1 or ISSUE #2?

Thank you very much.

-- Matt

Matthew M. Batchelor

Best Answer

  • Answer ✓
    Hi Matt,

    There is no Append option in the data table command. I recommend using Data Collector if you want to get data from multiple images and then save to a file.

    Yuri

Sign In or Register to comment.