#13484 Auto-import PVD surfaces for command line and replace case

Extract auto-import logic into public static method
importPvdSurfacesForGridFiles() and call it from:
- Command line case loading (--case argument)
- Replace case menu action
This commit is contained in:
Kristian Bendiksen committed 2026-03-06 12:32:05 +01:00
1 parent 24be78f105
commit 079372ea85
4 files changed
+29 -5

No files matched your search

@@ -44,6 +44,7 @@
#include "ExportCommands/RicSnapshotAllPlotsToFileFeature.h"
#include "ExportCommands/RicSnapshotAllViewsToFileFeature.h"
#include "ExportCommands/RicSnapshotViewToFileFeature.h"
#include "EclipseCommands/RicImportEclipseCaseFeature.h"
#include "HoloLensCommands/RicHoloLensSessionManager.h"
#include "RicImportGeneralDataFeature.h"
#include "SummaryPlotCommands/RicSummaryPlotFeatureImpl.h"
@@ -813,6 +814,9 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
{
getOrCreateAndShowMainPlotWindow();
}
// Auto-import matching PVD surface files for command-line loaded cases
RicImportEclipseCaseFeature::importPvdSurfacesForGridFiles( fileNames, {} );
}
if ( cvf::Option o = progOpt->option( "savesnapshots" ) )