hexagon logo

Script help needed - export point data to txt file

I have a program that measures 700+ points on an airfoil surface. I'm looking for an easy way to export the nominal and measured values into a txt file as feature name, X nom, Y nom, Z nom, X meas, Y meas, Z meas, X dev, Y dev, Z dev. I'm currently programming to put the values into an array and write to a file after every point measurement.

It would obviously be easier to have a script that would look for all feature names in a certain format, i.e. PNT_1, PNT_2, etc, write the data to a file, then look for the next feature. I wasn't planning on dimensioning any of the points but will if I have to. If someone can point me in the right direction I would greatly appreciate it.
Parents
  • It's close. Actually Export - XYZ is closer but I need nominal, measured, and deviations without IJK's. And I'm looking to automate this at the end of program execution.

    I'm working on modifying a script I found here but am stuck on a couple things. First, how do I get the values I want without a DIM command? I can DIM each point but trying to keep the program size down. Second, how do I get data formatted onto one line per point instead of one line for each piece of information per point?
Reply
  • It's close. Actually Export - XYZ is closer but I need nominal, measured, and deviations without IJK's. And I'm looking to automate this at the end of program execution.

    I'm working on modifying a script I found here but am stuck on a couple things. First, how do I get the values I want without a DIM command? I can DIM each point but trying to keep the program size down. Second, how do I get data formatted onto one line per point instead of one line for each piece of information per point?
Children
No Data