Create a separate menu entry for importing "Grouped Well Paths"

This commit is contained in:
Gaute Lindkvist
2020-10-19 13:16:00 +02:00
parent 7650d0bde8
commit 395398587a
15 changed files with 150 additions and 23 deletions

View File

@@ -889,6 +889,7 @@ bool RiaApplication::openOdbCaseFromFile( const QString& fileName, bool applyTim
/// Add a list of well path file paths (JSON files) to the well path collection
//--------------------------------------------------------------------------------------------------
std::vector<RimWellPath*> RiaApplication::addWellPathsToModel( QList<QString> wellPathFilePaths,
bool importGrouped,
gsl::not_null<QStringList*> errorMessages )
{
if ( m_project == nullptr || m_project->oilFields.size() < 1 ) return {};
@@ -907,7 +908,7 @@ std::vector<RimWellPath*> RiaApplication::addWellPathsToModel( QList<QString>
std::vector<RimWellPath*> wellPaths;
if ( oilField->wellPathCollection )
{
wellPaths = oilField->wellPathCollection->addWellPaths( wellPathFilePaths, errorMessages );
wellPaths = oilField->wellPathCollection->addWellPaths( wellPathFilePaths, importGrouped, errorMessages );
}
oilField->wellPathCollection->updateConnectedEditors();