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.
@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.