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)

  • Variation on JEFMAN's suggestion......
    ASSIGN/V1=SYSTEMDATE("dd")
    ASSIGN/V2=SYSTEMDATE("MM")*10^-2
    ASSIGN/V3=SYSTEMDATE("yyyy")*10^-6
    ASSIGN/V4=V1+V2+V3
    
    ASSIGN/V5=SYSTEMTIME("hh")*10^-2
    ASSIGN/V6=SYSTEMTIME("mm")*10^-4
    ASSIGN/V7=SYSTEMTIME("ss")*10^-6
    ASSIGN/V8=V5+V6+V7
    
    'change format statement to only output meas value
    FORMAT/TEXT, , , , , ;MEAS, , , , ,
    
    'create generic circle for date
    DATE1=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<0,0,0>,$
    MEAS/XYZ,<0,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/V4,V4
    
    'Create generic point for time
    TIME1=GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<0,0,0>,$
    MEAS/XYZ,<0,0,V8>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>
    
    'Dimension DATE1 for DIAMETER
    DIM DATE
    D 24.0520
    
    'Dimension TIME1 for T (sheet metal "T" )
    DIM TIME
    T 0.1114
    



    GENERIC OUTPUT FILE READS..........
    DATE AX[emoticon:6D505171FAA4497C85C5CA27290C555D], 24.052017
    TIME AX:T, 0.111430
    


    Now change FORMAT Statement back for other dimensioning.
  • +1 Dph !
    Much more efficient !!!!!!


    It's been said,
    "If you want to find the most efficient way to accomplish a given task, find the laziest guy in the shop! He will figure it out!"
  • Another automated solution would be to output a .TMP file using a stats command... That way you can have your Trace definitions. You would have to use Notepad++ to view it but it seems like a very stable and organized file.