hexagon logo

How to export generic (.txt file) with date and time stamp?

Hi guys,

How to export generic (.txt file) with date and timestamp at inside the .txt file? (File -> export -> Generic)

Parents
  • Dph51 is right !
    So you can at the start of the prog :
    ASSIGN/V1=SYSTEMDATE("dd/MM/yyyy")
    ASSIGN/V2=ELEMENT(1,"/",V1)
    ASSIGN/V3=ELEMENT(2,"/",V1)
    ASSIGN/V4=ELEMENT(3,"/",V1)
    Then create a generic point :
    DATE =GENERIC/POINT,DEPENDANT,CARTESIAN,$
    NOM/XYZ,<V2,V3,V4>
    MEAS/XYZ,<V2,V3,V4>
    NOM/IJK,<0,0,1>
    MEAS/IJK,<0,0,1>

    It gives on the txt file :
    DATE,19.000000,5.000000,2017.000000,0.000000,0.000000,1.000000
    If you do the same with SYSTEMTIME, and put values in the vector values, you will have what you want.... With a lot of .000000 in addition Disappointed


    Nicely done!
Reply
  • Dph51 is right !
    So you can at the start of the prog :
    ASSIGN/V1=SYSTEMDATE("dd/MM/yyyy")
    ASSIGN/V2=ELEMENT(1,"/",V1)
    ASSIGN/V3=ELEMENT(2,"/",V1)
    ASSIGN/V4=ELEMENT(3,"/",V1)
    Then create a generic point :
    DATE =GENERIC/POINT,DEPENDANT,CARTESIAN,$
    NOM/XYZ,<V2,V3,V4>
    MEAS/XYZ,<V2,V3,V4>
    NOM/IJK,<0,0,1>
    MEAS/IJK,<0,0,1>

    It gives on the txt file :
    DATE,19.000000,5.000000,2017.000000,0.000000,0.000000,1.000000
    If you do the same with SYSTEMTIME, and put values in the vector values, you will have what you want.... With a lot of .000000 in addition Disappointed


    Nicely done!
Children
No Data