#7811 Modeled Well Path : Add copy/paste of a modeled well path

This commit is contained in:
Magne Sjaastad
2021-06-24 13:17:43 +02:00
parent 5e5d5cb0a6
commit 95463c6521
6 changed files with 163 additions and 4 deletions

View File

@@ -339,6 +339,7 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
else if ( dynamic_cast<RimWellPathCollection*>( firstUiItem ) )
{
menuBuilder << "RicNewEditableWellPathFeature";
menuBuilder << "RicPasteModeledWellPathFeature";
menuBuilder.addSeparator();
menuBuilder.subMenuStart( "Import" );
menuBuilder << "RicWellPathsImportFileFeature";

View File

@@ -899,12 +899,11 @@ std::map<QString, std::vector<RimWellPath*>>
QString rootWellName = wellPath->name().left( indexOfLateralStart );
rootWells[rootWellName].push_back( wellPath );
continue;
}
}
else
{
rootWells[RimWellPathCollection::unGroupedText()].push_back( wellPath );
}
rootWells[RimWellPathCollection::unGroupedText()].push_back( wellPath );
}
return rootWells;