hexagon logo

Automate "export XYZ" file

Hi folks.
I have about 30 parts that need to be run which equates to about 80 measurement points per part. Design have said that they want the resultts in XYZ format so after each part had been run I manually export the data to a XYZ file.
Is there anyway to code this into the program?

Thanks,.
Virgil.
  • Not sure I follow this jefman, can you post an example please?


    You create a input comment to define the file name
    COMMENT,INPUT,"Enter the file name for results"
    File/Open,COM1.INPUT+".XYZ "(or .TXT, as you want !),ADD
    (Measure Vector point 1)
    File,write line, FORMAT("%3.3f,%3.3f,%3.3f",PNT1.XYZ)...............It will write 3.201,2.001,253.532 in the text file
    .................................................................................................................If you just write PNT1.XYZ, it will write <3.201,2.001,253.532 > if you have 3 decimal places.
    You insert a write line after each point, and at the end, you close the file.