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
  • Well, it turns out everything is working correctly. I could tell the variables had data assigned within the edit window but just running the script within the script editor wasn't showing and variable data. I had to run the actual program to get the variables to pass, not sure why. Anyway, I'm up and running and making modifications to the script as I go. Thanks again!
Reply
  • Well, it turns out everything is working correctly. I could tell the variables had data assigned within the edit window but just running the script within the script editor wasn't showing and variable data. I had to run the actual program to get the variables to pass, not sure why. Anyway, I'm up and running and making modifications to the script as I go. Thanks again!
Children
No Data