output data as text auto end of prog

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • output data as text auto end of prog

    Is there a script or way to export the data to a text file inside the program with out using export to generic after the program is completed. My company wants all programs ran to have the data exported to a text or xyz file to use the data later. I would like to have this done when the program is run and not have to remember to do it after every part is ran
    2013 MRI
    B&S DEA Ghibli & Global

  • #2
    You can print to .RTF (Rich Text File) by going into the print setup.
    I used to be high on life but I built up a tolerance.

    Brown & Sharpe Global Advantage
    PCDMIS CAD++ v2011mr2
    PH10MQ/SP600M


    sigpic

    Comment


    • #3
      what I need is all the data of all the features I do a print at the end of the program but that is not the same as doing a export to generic and outputing all the dimensions and features data that can be imported later to use the data
      2013 MRI
      B&S DEA Ghibli & Global

      Comment


      • #4
        What kind of data do you need to capture and how does it need to be formated? You can write to a text file using the file open and file write commands but depending on what you need to do it could be laborious. I use these quite a bit for data collection as two of my machines do not have SPC software on them (I gave up on Datapage).

        Craig
        <internet bumper sticker goes here>

        Comment


        • #5
          I need all the data for all the features in the program
          2013 MRI
          B&S DEA Ghibli & Global

          Comment


          • #6
            ALL is a broad term. Do you want the dimension data or the FEAT ID, POLAR or RECT, XYZIJK, NOM, MEAS, number of hits HIT locations, etc? I would call this ALL of the data. I guess if we knew what you were doing with the data that would help us zero in for you. It might be sounding like a .txt writeline is not the solution here but I am not sure what you mean by ALL data. I guess I am not getting the "import for later use" part as well. Let us know what your goal is and there may very well be someone here that can hook you up. There are guys here that are pretty slick with Datapage that may have a solution for you, but if you are thinking along the lines of saving as a .txt and uploading that as a prg like you might do with M & G coding for machine tools then I am afraid you might be disapointed.
            <internet bumper sticker goes here>

            Comment


            • #7
              what I need is the same data as I get when I use the file /export / generic function and check the dimensions and feature boxes and out put that gives me a file with all the point data for each feature measured
              example of data in file
              DATUMA, 0.000000, 0.000097, 0.000000, 0.000000, 1.000000, 0.000000, 9.641918
              DATUMA HITS, -4.819767, 0.001200, 0.004759, -1.000000, 0.000000, 0.000987
              DATUMA HITS, -4.172292, 0.000004, 2.413408, -0.865618, 0.000000, 0.500705
              DATUMA HITS, -2.407725, -0.000282, 4.176731, -0.499422, 0.000000, 0.866359
              DATUMA HITS, 0.002094, -0.000244, 4.821383, 0.000434, 0.000000, 1.000000
              DATUMA HITS, 2.414414, -0.000172, 4.173715, 0.500734, 0.000000, 0.865601
              DATUMA HITS, 4.175824, -0.000091, 2.410710, 0.866044, 0.000000, 0.499968
              DATUMA HITS, 4.820477, 0.000003, 0.004802, 1.000000, 0.000000, 0.000996
              DATUMA HITS, 4.176594, 0.000198, -2.404710, 0.866622, 0.000000, -0.498965
              DATUMA HITS, 2.414264, 0.000198, -4.172292, 0.500838, 0.000000, -0.865541
              DATUMA HITS, 0.001983, 0.000185, -4.821983, 0.000411, 0.000000, -1.000000
              DATUMA HITS, -2.416234, 0.000099, -4.173205, -0.501062, 0.000000, -0.865411
              DATUMA HITS, -4.178785, 0.000069, -2.404761, -0.866731, 0.000000, -0.498777
              DATUM B, -0.017619, -97.399934, 0.028335, 0.000000, 1.000000, 0.000000, 9.645676
              2013 MRI
              B&S DEA Ghibli & Global

              Comment


              • #8
                Its a pain too me , but you could write code in the program for each dimension and dump to an excell file.
                sigpic.....Its called golf because all the other 4 letter words were taken

                Comment


                • #9
                  I have been asking wilcox for years (since they removed it) to have the .xyz export function

                  CALL and complain/request/suggest it be added again

                  It is a very usefull function they removed several versions back...i don't remember how far or why they would have a good reason to do so
                  sigpiccall me "Plum Crazy"....but you only go around once!

                  Comment


                  • #10
                    look on the Wilcox site for a excel export program might be what you need
                    but I think it only puts out measured data also

                    other than that datapage is your other choice

                    Comment


                    • #11
                      Yes, Yes, Yes.
                      Some genius in your company wants to graph or play QCE eh? Use the Pc-Dmis to Excel marco .bat and write a script to pull every single hit point xyz, ijk out to .txt. Also use the Features to points macro tto. You are in for quite a haul but once you develope something it will be good.
                      I usually spend one to two weeks working on vba's, .bat scripts in between runs on projects like this. Also look at some of the other fine posts in the forum for help.

                      -Gabriel
                      sigpic

                      Comment


                      • #12
                        Hammer, I'm trying to do the same thing, and I haven't found any good answers yet. I also save my reports as a txt. file and use that data to automatically delimit it in excel and move it to a report required by one of our customers. PC-DMIS offers automatic exporting in other formats, but not the txt. format. I wanted to know if you could embed a macro at the end of the program to do the clicking for you when you export to generic, but no one has had an answer yet. If you find an answer to your question, we'll both be happy!

                        Comment


                        • #13
                          See my answers on the other report thread. If you want individual hit reporting use the feature name and the .HIT[1] extension. For example CIR1.HIT[1]. This is kindof a pain but a solution none the less.

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X