mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-30 17:42:13 -06:00
#7446 MLW: Add "Create Well Path Lateral" to well in Project Tree
This commit is contained in:
1 parent
b116247273
commit
082d6500ad
7 files changed
+138
-22
No files matched your search
@@ -358,7 +358,9 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
else if ( dynamic_cast<RimWellPath*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicNewEditableWellPathFeature";
|
||||
menuBuilder << "RicNewWellPathLateralFeature";
|
||||
menuBuilder << "RicNewWellPathIntersectionFeature";
|
||||
|
||||
appendCreateCompletions( menuBuilder );
|
||||
menuBuilder.addSeparator();
|
||||
appendImportMenu( menuBuilder );
|
||||
|
||||
@@ -113,7 +113,8 @@ void RimWellPathTieIn::updateFirstTargetFromParentWell()
|
||||
if ( !parentWellPath ) return;
|
||||
|
||||
auto modeledWellPath = dynamic_cast<RimModeledWellPath*>( m_childWell() );
|
||||
if ( modeledWellPath && modeledWellPath->geometryDefinition() )
|
||||
if ( modeledWellPath && modeledWellPath->geometryDefinition() && parentWellPath->wellPathGeometry() &&
|
||||
parentWellPath->wellPathGeometry()->measuredDepths().size() > 2 )
|
||||
{
|
||||
auto [pointVector, measuredDepths] =
|
||||
parentWellPath->wellPathGeometry()
|
||||
|
||||
Reference in new issue
Block a user