#7446 MLW: Add "Create Well Path Lateral" to well in Project Tree

This commit is contained in:
Magne Sjaastad committed 2021-05-11 09:27:55 +02:00
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()