hexagon logo

Get the latest result values

Hi,
 
I am importing the results  using below PCL code and the file names remains same and value in the files are changed. But in the results case names are created as filename_1, filemane_2...Please suggest a method to get the latest case name to plot the results.
 
file_get_p3_home(HDIR)
 HDIR = HDIR//"\res_templates\p2nf_els.res_tmpl"
 resold_import_results( filename , "E", 1E-006, HDIR )​
Parents
  • @Boobalan Srinivasan​, If you want the latest case name, you will have to interrogate the database to extract the results ids data.
     
    Result case titles are referenced with the "Subcase ID / Result case ID" pair. The IDs are not exposed in the standard Results GUI, but you can click thru them if you run this PCL utility:
    ui_exec_function("result_selector", "display")
     
    I created a very simple function that extracts the IDs and dumps them. See attached.
    It comes with the usual caveats: limited testing, no error checking, etc, etc.
    This should get the information you need.
     

    Attached Files (1)
Reply
  • @Boobalan Srinivasan​, If you want the latest case name, you will have to interrogate the database to extract the results ids data.
     
    Result case titles are referenced with the "Subcase ID / Result case ID" pair. The IDs are not exposed in the standard Results GUI, but you can click thru them if you run this PCL utility:
    ui_exec_function("result_selector", "display")
     
    I created a very simple function that extracts the IDs and dumps them. See attached.
    It comes with the usual caveats: limited testing, no error checking, etc, etc.
    This should get the information you need.
     

    Attached Files (1)
Children
No Data