APPEND issues within MEASUREMENT TABLE + EXPORT + TEXT FILE . . .
All --
I have code similar to the following within a PROJECT . . .
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
Thank you very much.
-- Matt
Matthew M. Batchelor
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 WithWhere 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.SaveAsTextthat will work around ISSUE #1 or ISSUE #2?
Thank you very much.
-- Matt
Matthew M. Batchelor
0
Best 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.Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions